i need to write a batch file to run an executable. However this exe will not close by itself after running. It requires the user to hit enter to close the exe which is trigger from the batch file.
Now is that my exe and my batch file will be there until i manually hit enter to close the exe then the batch file will proceed and end this job
Is there a way to detect the com开发者_StackOverflowpletion of the exe and end the exe from the batch file itself?
Thanks
Have you tried using the start command with a Windows .CMD file?
start "" "C:\Program Files\Adobe\Adobe Photoshop CS4\Photoshop.exe"
Source: https://superuser.com/questions/191149/how-to-execute-cmd-exe-silently
精彩评论