This message will self-destruct in five seconds…

After having played with the BSO-Exif tool for a while, the customer came back to me and asked if it’s possible to delete the batch file after it has run. Similar to a tape-recorded mission briefing Peter Graves received in Mission impossible: “This tape will self-destruct in five seconds”.

Warning

  • Do NOT try this at home!
  • Use at own risk!

Copy and paste the following commands in a new batch-file.

@ECHO OFF
REM Author: byteway
REM Description: Allow only one run for this batch file!

SET FILENAME="%~f0" 
ECHO Deleting %FILENAME%
ECHO Check if file can be found.
DEL /Q %FILENAME%

pause

Send me a personal message if you want this feature incorporated into the BSO-Exif tool.