473,396 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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
Nov 13 '05 #1
21 4670
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
Steve wrote:
Does anyone have any ideas on how to write self-destruct code?


Yes.

Nov 13 '05 #3
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
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
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
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
"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
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
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
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
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
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

"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
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
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
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
"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
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
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
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Ralf W. Grosse-Kunstleve | last post by:
****************************************************************************** This posting is also available in HTML format: http://cci.lbl.gov/~rwgk/python/adopt_init_args_2005_07_02.html...
6
by: Lasse Skyum | last post by:
I'm currently learning STL and I hate not knowing what is gooing on "inside" STL... not because I really _need_ to know it to develop my game project, but that's just my nature... like most of you...
6
by: Jason Shohet | last post by:
Is there a way for a code-behind to delete the dll after an expiration, or if a user doesn't enter the right password. ie, lets say i license something to someone for 3 months. After that time,...
5
by: Frederick Gotham | last post by:
If we have a simple class such as follows: #include <string> struct MyStruct { std::string member; MyStruct(unsigned const i) {
3
by: Genalube | last post by:
All right I am new at access but why would my calculated fields in my query self destruct all of a sudden? I tested these expressions, saved the query and closed it. I reopened them and tested it. ...
84
by: braver | last post by:
Is there any trick to get rid of having to type the annoying, character-eating "self." prefix everywhere in a class? Sometimes I avoid OO just not to deal with its verbosity. In fact, I try to...
14
by: tekctrl | last post by:
(See earlier post "Record Is Too Large") This morning I just wiped out all earlier tables, kept the original tab delimited table and Form, then went back in and did a complete new DB split and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.