[DOS] 透過 start 指令將parameter 帶入要執行的指令

在Command prompt 利用start 指令時, 是希望叫用另一command prompt 去執行其他指令. 然而. 當使用時, 卻不能將parameter 帶入執行指令中.除了建立batch file 外, start 還可以直接執行, 如下:

start "" "C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" /t "%statementPath%\G0108_PRINTOUT_NORMAL.pdf" %defaultPrintQueue%

透過 “” 作第一個parameter, 使它當作title 並執行指令.

About C.H. Ling 260 Articles
a .net / Java developer from Hong Kong and currently located in United Kingdom. Thanks for Google because it solve many technical problems so I build this blog as return. Besides coding and trying advance technology, hiking and traveling is other favorite to me, so I will write down something what I see and what I feel during it. Happy reading!!!

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.