In DEL "%~f0" %~f0 expands to the fully qualified path name of the batch file itself, i.e. DEL "C:\Documents and Settings\Administrator\Desktop\Test bat.cmd". However, as I stated in my reply the only line required is DEL %0; this will work regardless of spaces in the path or file name. The Q switch is not and will never be required in this case. People wrongly assume that /Q means quiet, it does, but only when using on global wildcards. The F switch, DEL/F %0, shouldn't be requied either, why create a read only self deleting file?