I have an atp4 automise project file. When I double click on it an ATCMD.exe window pops up and executes the script, but immediately closes upon completion.
I would like to see what's going on during the execution, and therefore would like the runtime window to stay open so I can see what it's output is.
How can I prevent the window from closing after it finishes executing the script?
I don't know
atp4but with a batch script you should be able to get what you want (thecmdtag implies you have Windows command prompt available). All you'll have to do in your batch script is put the name of youratp4automise project file (use double quotes if it contains spaces), add apauseunder it and save it with a.batextension in the same directory as youratp4automise file. You can then double-click on the batch-file and it will launch youratp4automise project file and call thepausecommand after it. Thepausewill cause the command window to remain open untill you press on a key. Your batch-file should look like this:The
@echo offis not mandatory but it prevents thecmdto print each command it executes in your batch-file.If you prefer that only the Enter key can make you "exit" the window, you can replace
pausewithset /p =Press the Enter key to exit....set /pnormally waits on input from the user to set a variable with it (user's input ends when he/she presses enter).set /pwithout giving a variable to store the input in is as telling cmd to wait untill the user presses enter.EDIT: There is a little remark I'd like to add. Normally in windows the path to a file should be enough to call the program that should open it (the program linked to the file extension is called automatically). It should have the same effect as double clicking on the file in the explorer GUI but some files (like batch scripts) may need some additional commands to make it "go smooth" inside a batch script too. As I don't know
atp4I cannot control it for this case. I'd advise you to try out the script and maybe indicate in the comments if it worked fine.