That seems logical - the only trick being you must specify the full command name - For example if your batch file is name runme.cmd and to execute it, you simply type "runme" then delete (or del) %0 expands to "del runme" - which will fail... you would need to execute the batch file using the complete file name like - runme.cmd - then "del %0" expands to "del runme.cmd". Of course, you can also just put in the .cmd - "del %0.cmd"