Get help with using AutoHotkey and its commands and hotkeys
2 posts • Page 1 of 1
On exit (e.g. GuiClose with ExitApp) a script should delete the folder where it is located. How to do this?
Saw this on https://stackoverflow.com/questions/160 ... executable
There are other ideas in that thread.process.start("cmd /c ping localhost -n 3 > nul & del filepath")
replace process.start with whatever command your programming language uses to start programs with arguments
replace filepath with the path to your exe
replace exit with the command for terminating your program