A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Self Destruct Code



 
 
Thread Tools Display Modes
  #1  
Old May 29th, 2004, 05:02 PM
Steve
external usenet poster
 
Posts: n/a
Default Self Destruct Code

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


  #2  
Old May 29th, 2004, 06:00 PM
Marshall Barton
external usenet poster
 
Posts: n/a
Default Self Destruct Code

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]
  #3  
Old May 29th, 2004, 10:36 PM
Salad
external usenet poster
 
Posts: n/a
Default Self Destruct Code

Steve wrote:

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


Yes.

  #4  
Old May 29th, 2004, 11:46 PM
Thilo Immel
external usenet poster
 
Posts: n/a
Default Self Destruct Code

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

  #5  
Old May 30th, 2004, 01:30 AM
Salad
external usenet poster
 
Posts: n/a
Default Self Destruct Code

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


  #6  
Old May 30th, 2004, 03:03 AM
Steve
external usenet poster
 
Posts: n/a
Default Self Destruct Code

So, do you want to share your ideas?


"Salad" wrote in message
hlink.net...
Steve wrote:

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


Yes.



  #7  
Old May 30th, 2004, 03:05 AM
Steve
external usenet poster
 
Posts: n/a
Default Self Destruct Code

Not at all!!!

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

Steve


"Thilo Immel" wrote in message
...
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



  #8  
Old May 30th, 2004, 03:08 AM
Rick Brandt
external usenet poster
 
Posts: n/a
Default Self Destruct Code

"Steve" wrote in message
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


  #9  
Old May 30th, 2004, 04:36 AM
Salad
external usenet poster
 
Posts: n/a
Default Self Destruct Code

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" wrote in message
...

Steve,


  #10  
Old May 30th, 2004, 04:38 AM
Salad
external usenet poster
 
Posts: n/a
Default Self Destruct Code

Steve wrote:

So, do you want to share your ideas?


Without more information, never.



"Salad" wrote in message
hlink.net...

Steve wrote:


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


Yes.





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:49 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.