Computing.Net > Forums > Disk Operating System > bat file should delete itself after running

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

bat file should delete itself after running

Reply to Message Icon

Name: Miskva
Date: January 20, 2001 at 14:08:24 Pacific
Comment:

I got a program which creates batch files, and then they are ready to be run... it would be nice if they would be able to delete themselves after running ... Its quite easy to manage, using another program/batchfile, but just wondering if something like this is possible .. with or without some tricks ...



Sponsored Link
Ads by Google

Response Number 1
Name: Michael
Date: January 20, 2001 at 17:56:57 Pacific
Reply:

Miskva,

In DOS under windows 9X, you can just add a line to the end of the batch file which deletes itself.

I.E. if the batch file is called test.bat then adding
del test.bat
as the last command executed will remove the batch file from the disk.

-Michael


0

Response Number 2
Name: Tami
Date: January 20, 2001 at 19:52:00 Pacific
Reply:

Way to go, now he's going to be writing virus's...DUH!


0

Response Number 3
Name: Miskva
Date: January 21, 2001 at 07:28:46 Pacific
Reply:

Apart from a message 'Batch File Missing' it even works, thanks Michael !


0

Response Number 4
Name: Tami
Date: January 22, 2001 at 06:03:32 Pacific
Reply:

Tami,

Learn to spell viruses, DUH!

Moron


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: bat file should delete itself after running

Help ! I need someone who can help me create a *.bat file www.computing.net/answers/dos/help-i-need-someone-who-can-help-me-create-a-bat-file/549.html

Setting batch file to run only 5 times www.computing.net/answers/dos/setting-batch-file-to-run-only-5-times/8526.html

DOS Find char, Ren file, bat file www.computing.net/answers/dos/dos-find-char-ren-file-bat-file/13558.html