How do I download a batch file from a batch file and then making it delete itself? [closed]
I have a batch file executing the following:
curl.exe -o file.bat https://www.examplewebsite.com/file.txt/
start /min file.bat /c
exit
And in "file.bat", the last part of the code is:
(GoTo) 2>NUL & Del "%~f0"