By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,391 Members | 2,068 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,391 IT Pros & Developers. It's quick & easy.

Self Destruct Code

P: n/a
Does anyone have any ideas on how to write self-destruct code?

I need to run a one-time procedure the next time a database opens. If the
procedure is successful, the procedure needs to be deleted and the code that
initiated the procedure needs to delete itself.

Thanks for any suggestions!

Steve
Nov 13 '05 #1
Share this Question
Share on Google+
21 Replies


P: n/a
Steve wrote:
Does anyone have any ideas on how to write self-destruct code?

I need to run a one-time procedure the next time a database opens. If the
procedure is successful, the procedure needs to be deleted and the code that
initiated the procedure needs to delete itself.

"Self destruct" code is not a good idea! Changing a code
module is a design time operation, which should not be
performed at run time.

Whatever the one time code does must leave some kind of
tracks behind itself. You can add code to test for the
tracks and skip running the one time procedure if it has
already run.

--
Marsh
MVP [MS Access]
Nov 13 '05 #2

P: n/a
Steve wrote:
Does anyone have any ideas on how to write self-destruct code?


Yes.

Nov 13 '05 #3

P: n/a
Steve,
Does anyone have any ideas on how to write self-destruct code?

I need to run a one-time procedure the next time a database opens. If the
procedure is successful, the procedure needs to be deleted and the code that
initiated the procedure needs to delete itself.


Are you writing some malware that you have to delete the code after it
has run one time?

Thilo Immel

Nov 13 '05 #4

P: n/a
Thilo Immel wrote:
Steve,

Does anyone have any ideas on how to write self-destruct code?

I need to run a one-time procedure the next time a database opens. If the
procedure is successful, the procedure needs to be deleted and the code that
initiated the procedure needs to delete itself.

Are you writing some malware that you have to delete the code after it
has run one time?


Sounds like it. Why give someone like knowledge.

Thilo Immel


Nov 13 '05 #5

P: n/a
So, do you want to share your ideas?
"Salad" <oi*@vinegar.com> wrote in message
news:Qn*******************@newsread1.news.pas.eart hlink.net...
Steve wrote:
Does anyone have any ideas on how to write self-destruct code?


Yes.

Nov 13 '05 #6

P: n/a
Not at all!!!

It's for a one-time cleanup of data in a database.

Steve
"Thilo Immel" <Ac******@web.de> wrote in message
news:nm********************************@4ax.com...
Steve,
Does anyone have any ideas on how to write self-destruct code?

I need to run a one-time procedure the next time a database opens. If the
procedure is successful, the procedure needs to be deleted and the code that
initiated the procedure needs to delete itself.


Are you writing some malware that you have to delete the code after it
has run one time?

Thilo Immel

Nov 13 '05 #7

P: n/a
"Steve" <no****@nospam.spam> wrote in message
news:tj*******************@newsread2.news.atl.eart hlink.net...
Not at all!!!

It's for a one-time cleanup of data in a database.

Steve


Just create a one field table with a Yes/No field indicating whether the
one-time code has run. Test it at the beginning of the code and set it to True
at the end. There is no need to "destroy" the code.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #8

P: n/a
rkc

"Steve" <no****@nospam.spam> wrote in message
news:tj*******************@newsread2.news.atl.eart hlink.net...
Not at all!!!

It's for a one-time cleanup of data in a database.


Put the code in it's own module and use

docmd.deleteobject acModule, "EvilCode"
Nov 13 '05 #9

P: n/a
Steve wrote:
Not at all!!!

It's for a one-time cleanup of data in a database.
That's what I had some concerns about...giving you a method to do a "one
time cleanup" of data. I know people that wouldn't mind if some virus
writers were castrated, had their hands cut off, or simply had a bullet
fired into their brains.

We don't know you. Your request is odd and raises red flags.

Steve
"Thilo Immel" <Ac******@web.de> wrote in message
news:nm********************************@4ax.com...
Steve,


Nov 13 '05 #10

P: n/a
Steve wrote:
So, do you want to share your ideas?
Without more information, never.


"Salad" <oi*@vinegar.com> wrote in message
news:Qn*******************@newsread1.news.pas.eart hlink.net...
Steve wrote:

Does anyone have any ideas on how to write self-destruct code?


Yes.



Nov 13 '05 #11

P: n/a
if he were, would you really expect him to admit it? <g>
"Thilo Immel" <Ac******@web.de> wrote in message
news:nm********************************@4ax.com...
Steve,
Does anyone have any ideas on how to write self-destruct code?

I need to run a one-time procedure the next time a database opens. If the
procedure is successful, the procedure needs to be deleted and the code thatinitiated the procedure needs to delete itself.


Are you writing some malware that you have to delete the code after it
has run one time?

Thilo Immel

Nov 13 '05 #12

P: n/a
OM
You could probably wire up a relay that was activated by the end of the
code, that set of a lump of C4 or Semtex. That would "self destroy" the
code.

Rob
"Thilo Immel" <Ac******@web.de> wrote in message
news:nm********************************@4ax.com...
Steve,
Does anyone have any ideas on how to write self-destruct code?

I need to run a one-time procedure the next time a database opens. If theprocedure is successful, the procedure needs to be deleted and the code thatinitiated the procedure needs to delete itself.


Are you writing some malware that you have to delete the code after it
has run one time?

Thilo Immel


Nov 13 '05 #13

P: n/a

"Steve" <no****@nospam.spam> wrote in message
news:tj*******************@newsread2.news.atl.eart hlink.net...
Not at all!!!

It's for a one-time cleanup of data in a database.
Write it in VBScript and call it from your app using the Shell function. The VBScript can self destruct
upon completion.

Steve
"Thilo Immel" <Ac******@web.de> wrote in message
news:nm********************************@4ax.com...
Steve,
Does anyone have any ideas on how to write self-destruct code?

I need to run a one-time procedure the next time a database opens. If the
procedure is successful, the procedure needs to be deleted and the code that
initiated the procedure needs to delete itself.


Are you writing some malware that you have to delete the code after it
has run one time?

Thilo Immel


Nov 13 '05 #14

P: n/a
Are you related to Don Mellon? Seems the two of you are cut from the same mold!
"Salad" <oi*@vinegar.com> wrote in message
news:pF******************@newsread1.news.pas.earth link.net...
Steve wrote:
Not at all!!!

It's for a one-time cleanup of data in a database.


That's what I had some concerns about...giving you a method to do a "one
time cleanup" of data. I know people that wouldn't mind if some virus
writers were castrated, had their hands cut off, or simply had a bullet
fired into their brains.

We don't know you. Your request is odd and raises red flags.

Steve
"Thilo Immel" <Ac******@web.de> wrote in message
news:nm********************************@4ax.com...
Steve,

Nov 13 '05 #15

P: n/a
Thanks, Mike, but I still then have the Shell code remaining.
"MikeB" <m.byerleyATVerizontDOTnet> wrote in message
news:OL**************@TK2MSFTNGP10.phx.gbl...

"Steve" <no****@nospam.spam> wrote in message
news:tj*******************@newsread2.news.atl.eart hlink.net...
Not at all!!!

It's for a one-time cleanup of data in a database.
Write it in VBScript and call it from your app using the Shell function. The

VBScript can self destruct upon completion.

Steve
"Thilo Immel" <Ac******@web.de> wrote in message
news:nm********************************@4ax.com...
Steve,

>Does anyone have any ideas on how to write self-destruct code?
>
>I need to run a one-time procedure the next time a database opens. If the
>procedure is successful, the procedure needs to be deleted and the code that >initiated the procedure needs to delete itself.

Are you writing some malware that you have to delete the code after it
has run one time?

Thilo Immel



Nov 13 '05 #16

P: n/a
Is this one of those Al Quida solutions?
"OM" <le******@loxinfo.dot.co.th> wrote in message
news:c9**********@news.loxinfo.co.th...
You could probably wire up a relay that was activated by the end of the
code, that set of a lump of C4 or Semtex. That would "self destroy" the
code.

Rob
"Thilo Immel" <Ac******@web.de> wrote in message
news:nm********************************@4ax.com...
Steve,

>Does anyone have any ideas on how to write self-destruct code?
>
>I need to run a one-time procedure the next time a database opens. If the >procedure is successful, the procedure needs to be deleted and the code

that
>initiated the procedure needs to delete itself.

Are you writing some malware that you have to delete the code after it
has run one time?

Thilo Immel



Nov 13 '05 #17

P: n/a
"Steve" <no****@nospam.spam> wrote:
Are you related to Don Mellon? Seems the two of you are cut from the same mold!


Not from what I've seen.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 13 '05 #18

P: n/a
the only intelligent post in this hole thred is by tony but all he does is
read message headers not messages
Nov 13 '05 #19

P: n/a
Steve wrote:
Are you related to Don Mellon? Seems the two of you are cut from the same mold!

Beyond being related to the family of man, no.

Looking back to your 4/2/2004 request "Does anyone know of any site one
could go to, upload several thousand social security numbers and get the
current address of the matches to the SSNs?" I think most people in this
thread have you pegged correctly...or else as a troll.

Nov 13 '05 #20

P: n/a
"Clyde" <no****@nospam.net> wrote in message
the only intelligent post in this hole thred is by tony but all he does is
read message headers not messages


Hi, Don. I didn't think you trolled on weekends.
Nov 13 '05 #21

P: n/a
OM
and since you're not Tony, what does that say about YOUR message ?

Rob

"Clyde" <no****@nospam.net> wrote in message
news:a4******************************@news.teranew s.com...
the only intelligent post in this hole thred is by tony but all he does is
read message headers not messages

Nov 13 '05 #22

This discussion thread is closed

Replies have been disabled for this discussion.