self deleting executable

Just starting out? Need help? Post your questions and find answers here.
danraymond
User
User
Posts: 43
Joined: Wed Jun 28, 2006 6:02 am

self deleting executable

Post by danraymond »

I want to make an executable so it deletes itself from disk after a specified number of runs (its a demo).

scenario:
1. exe runs say 50 times
2. end of 50th run exe deletes itself after throwing up "expired" message
3. counter is hidden internally in the exe not in registry etc.
any help??? please

Dan Raymond
Tranquil
Addict
Addict
Posts: 952
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

Post by Tranquil »

Howdy ho!

Please use the search function before posting. You will find these results that meight help you:

http://www.purebasic.fr/english/viewtop ... unning+exe

http://www.purebasic.fr/english/viewtop ... unning+exe

There are more threads about this, but I think this is what you are searching for.
Tranquil
danraymond
User
User
Posts: 43
Joined: Wed Jun 28, 2006 6:02 am

am i bad??

Post by danraymond »

did a search but missed the second post. thanks gave me what I needed

Dan Raymond
Post Reply