New
#1
Add an "Exit Command" to a shortcut
I'm not sure what to call this, but I'm curious if there is a way to tell a program to run an "Exit Command" when it's process closes. As an example, I can do this with a batch file. If I do the following, the command prompt will stop after it runs "program.exe" and then run the rest of the script when it closes:
The problem is that, if for some reason the command prompt is closed before "program.exe", it never gets to <DO MORE THINGS>. Is there a Windows shortcut command to instruct the program to do something when it closes? Something that looks like below where a bat file is run when the program ends?:Code:cd "location of program" program.exe <DO MORE THINGS>
Win Version: Windows 10, 21H2Code:Target: C:\Program.exe -<EXIT COMMAND=run Exit.bat>