How To Run Command Prompt Commands From A Windows Shortcut, How To Keep The Cmd Window Open

When i´m on a batch file and i need to start parallels operations, i can use cmd, start and call

how to use these options?

when it is appropriate to use each one?

what´s the difference in /c and /k?

there is an advantage in using start or call to call external routines?

these toughts began when i was installing an app and í was trying to make sure that the installer is really running during the batch and i would like to check the proccess in memory to make sure the silent install is runnning, but the prompt only returns after the setup executable finishes, so i need to call the install in a external window and in the batch use the TASKLIST only to make sure that the installer is in memory doing the job

shou I cal the install routine or the tasklist as external task?

should I use cmd, start or call?

Thursday, August 6, 2015 11:59 AM

Answers

*

*

4
Sign in to vote

Hi KayZerSoze,

CMD /C Run Command and then terminateCMD /K Run Command and then return to the CMD prompt. This is useful for testing, to examine variablesA good example use of CALL, can be found here:http://ss64.com/nt/call.html.

Đang xem: How to run command prompt commands from a windows shortcut

For START examples:http://ss64.com/nt/start.html.

| Branko Vucinec | MCSE, MCSA, MCPSBlog: blog.brankovucinec.com

Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

Xem thêm: Hướng Dẫn Crack Win 7 Bằng Windows Loader 2, Cách Active Win 7 Vĩnh Viễn Bằng Windows Loader

Thursday, August 6, 2015 12:10 PM

All replies

*

*

4
Sign in to vote

Hi KayZerSoze,

CMD /C Run Command and then terminateCMD /K Run Command and then return to the CMD prompt. This is useful for testing, to examine variablesA good example use of CALL, can be found here:http://ss64.com/nt/call.html.

For START examples:http://ss64.com/nt/start.html.

Xem thêm: Oneplus 8 Pro Or Oneplus 8: Which One Should You Buy? Oneplus 8 Pro

| Branko Vucinec | MCSE, MCSA, MCPSBlog: blog.brankovucinec.com

Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

Thursday, August 6, 2015 12:10 PM

*

0
Sign in to vote
Does anyone have a example of cmd /c running a .bat file? JohnCMD /c \folderSoftwarefiles.bat
Thursday, September 27, 2018 4:52 PM
Newsletter|Contact Us|Privacy Statement|Terms of Use|Trademarks

Leave a comment

Your email address will not be published. Required fields are marked *