如何用批次檔執行 .exe 程式 - Windows

By Mia
at 2010-10-15T14:34
at 2010-10-15T14:34
Table of Contents
謝謝各位的回覆, 我現在把圖 po 上
1. 在命令提示字元打入程式 scout_cl.exe
http://ppt.cc/c,A,
2. 進入程式的畫面. 有新的 prompt
http://ppt.cc/KS;(
3. 在新的 prompt 下輸入 command 後執行成功
http://ppt.cc/7bfM
4. 回到命令提示字元, 打入 scout_cl.exe < command
http://ppt.cc/F8XY
5. 結果是曾經進入過 scout_cl.exe 但好像沒有成功地執行 command
http://ppt.cc/id!w
先謝謝回覆者的意見, 等一下有事, 晚點才會再上 ptt
※ 引述《PanJC ((#‵Д′)f〒﹌﹌﹌﹌﹌ꄩ》之銘言:
: 各位好, 我有一個程式 (簡稱為 a.exe).
: 打開命令提示字元到 a.exe 的工作目錄後,
: 輸入 a.exe 後會出現新的 prompt (如: A > ),
: 在它的 prompt 下, 輸入 a.exe 的 command 後可以跑一些統計分析.
: (如 A > analyze filename.txt
: # 其中analyze 是 a.exe 的 command, filename.txt 是欲分析的資料檔)
: 我的問題:
: 現在我要用 a.exe 分析 300 筆資料 (filename1.txt ~ filename300.txt).
: 如果每次都進入 a.exe 後再手輸入 analyze filename.txt 會很沒效率,
: 因為要輸入 300 次.
: 所以我希望寫個批次檔, 用迴圈來執行分析這 300 個資料.
: 迴圈的寫法沒有問題, 問題在於迴圈中的內容要如何寫
: 才能執行 a.exe 中的 analyze command
: (好像要進入 A > 中輸入 command 才有效)
: 不好意思, 我已盡量形容的仔細. 如果不夠清楚, 請各位再提問. 謝謝!
--
1. 在命令提示字元打入程式 scout_cl.exe
http://ppt.cc/c,A,
2. 進入程式的畫面. 有新的 prompt
http://ppt.cc/KS;(
3. 在新的 prompt 下輸入 command 後執行成功
http://ppt.cc/7bfM
4. 回到命令提示字元, 打入 scout_cl.exe < command
http://ppt.cc/F8XY
5. 結果是曾經進入過 scout_cl.exe 但好像沒有成功地執行 command
http://ppt.cc/id!w
先謝謝回覆者的意見, 等一下有事, 晚點才會再上 ptt
※ 引述《PanJC ((#‵Д′)f〒﹌﹌﹌﹌﹌ꄩ》之銘言:
: 各位好, 我有一個程式 (簡稱為 a.exe).
: 打開命令提示字元到 a.exe 的工作目錄後,
: 輸入 a.exe 後會出現新的 prompt (如: A > ),
: 在它的 prompt 下, 輸入 a.exe 的 command 後可以跑一些統計分析.
: (如 A > analyze filename.txt
: # 其中analyze 是 a.exe 的 command, filename.txt 是欲分析的資料檔)
: 我的問題:
: 現在我要用 a.exe 分析 300 筆資料 (filename1.txt ~ filename300.txt).
: 如果每次都進入 a.exe 後再手輸入 analyze filename.txt 會很沒效率,
: 因為要輸入 300 次.
: 所以我希望寫個批次檔, 用迴圈來執行分析這 300 個資料.
: 迴圈的寫法沒有問題, 問題在於迴圈中的內容要如何寫
: 才能執行 a.exe 中的 analyze command
: (好像要進入 A > 中輸入 command 才有效)
: 不好意思, 我已盡量形容的仔細. 如果不夠清楚, 請各位再提問. 謝謝!
--
Tags:
Windows
All Comments

By Skylar Davis
at 2010-10-16T18:06
at 2010-10-16T18:06

By Jacky
at 2010-10-18T21:00
at 2010-10-18T21:00
Related Posts
如何用批次檔執行 .exe 程式

By Victoria
at 2010-10-15T13:32
at 2010-10-15T13:32
windows media player12

By Linda
at 2010-10-15T09:44
at 2010-10-15T09:44
如何解決office打字會出現2的問題?

By Steve
at 2010-10-15T09:44
at 2010-10-15T09:44
429:activex component cant creat object

By Christine
at 2010-10-15T09:17
at 2010-10-15T09:17
XP反覆登入未果~

By Robert
at 2010-10-15T03:10
at 2010-10-15T03:10