Delete program folder on exit
Posted: 28 Dec 2018, 16:12
On exit (e.g. GuiClose with ExitApp) a script should delete the folder where it is located. How to do this?
Let's help each other out
https://www.autohotkey.com/boards/
https://www.autohotkey.com/boards/viewtopic.php?f=76&t=60413
There are other ideas in that thread.process.start("cmd /c ping localhost -n 3 > nul & del filepath")
exit
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