A self destruct command in a .bat file:
del %0.bat
works, but gives an error message "Batch file missing."
To suppress the error message, edit the .bat file, remove all trailing
CRLFs, and put CTRL-Z (EOF) immediately following the command. Hex dump
looks like this:
64 65 6c 20 25 30 2e 62 61 74 1a del %0.bat.
The "1a" character is CTRL-Z.
But only if you start the batch with "filename" and not "filename.bat".
And even then only, if the name is "filename.bat" and not "filename.cmd"
Isn't it simpler to use:
del %0.bat &exit
| Sysop: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,075 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 97:08:32 |
| Calls: | 13,798 |
| Calls today: | 1 |
| Files: | 186,990 |
| D/L today: |
7,098 files (1,968M bytes) |
| Messages: | 2,438,541 |