Reputation: 11
Cmd command doesn’t work at startup folder it doesn’t delete itself please help if I double click on it itself delete but if it run runs at startup it shows the message but it won’t self delete.
Echo off
Hello world
start /b "" cmd /c del "%~f0"&exit /b
Upvotes: 0
Views: 1097
Reputation: 11
There is a simple delete command
start del Filename.bat
or
del filemname.bat
Upvotes: 1