At some point in my script, I\'d like the bat script to delete itself. This requires that the script know its name and then to use that name to delete itself. Is this possib
%0 gives you the relative path the from the directory where the bat file was started. So if you call it
mybats\delyourself.bat tango roger
%0 will contain mybats\delyourself.bat
mybats\delyourself.bat
del %0 works if you haven't changed your current directory.
del %0
%~f0 exapnds to the full path to the file.
%~f0