We help IT Professionals succeed at work.

Display results on screen

cindylaramee
cindylaramee asked
on
I have a shortcut that runs an executable.  When you run it the program opens a command line and runs the code.  The results display quickly on the screen and then the dos window closes.  How can I get the results to stay on the screen?  I cannot change the executable itself.  If I run the executable from the command prompt and do not use the shortcut the results stay on the screen.  But since users are clicking on the shorcut I do not want them to have to go to the command line to run the executable.  I need a .bat file that will do the same thing and I can run the bat file from the shortcut versus the executable.

Here is the executable:  "C:\Program Files (x86)\TMW Systems, Inc\TMWSuite\Inventory Service Module\ForecasterConsole\ForecasterConsole.exe" -f12

Thanks,
Cindy
Comment
Watch Question

Commented:
add pause at the bottom after all your commands

Author

Commented:
Pardon my ignorance.

Here is the bat file:
cd /
"C:\Program Files (x86)\TMW Systems, Inc\TMWSuite\Inventory Service Module\ForecasterConsole\ForecasterConsole.exe" -f12 pause


It is still displaying the information and then vanishing.

Author

Commented:
Just got it....need to be on line after the command.
Thanks

Commented:

cd /

"C:\Program Files (x86)\TMW Systems, Inc\TMWSuite\Inventory Service Module\ForecasterConsole\ForecasterConsole.exe" -f12 

pause

Open in new window

Author

Commented:
Thanks for the quick response.