Delete program folder on exit

Get help with using AutoHotkey and its commands and hotkeys
Posts: 444
Joined: 24 Aug 2016, 03:34

Delete program folder on exit

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?
Posts: 214
Joined: 17 Oct 2018, 11:43
GitHub: oif2003

Re: Delete program folder on exit

28 Dec 2018, 17:18

Saw this on ... executable
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
There are other ideas in that thread.

Return to “Ask For Help”

Who is online

Users browsing this forum: 4k3or3et, Bing [Bot], boiler, DaveT1, fhill2, Google [Bot], Rohwedder, Sabestian Caine and 47 guests