作者huang123 (未命名)
看板ASM
標題[問題]批次檔
時間Fri May 7 18:31:26 2010
例如:
C:\
test.exe
C:\
test.exe
我想問的是
test.exe是一種命令提示字元的檔案
裡頭可以輸入指令
那我如何直接從批次檔,直接輸入我要的指令呢?!
換句話說
test.exe裡頭要我輸入今年我幾歲的話?
那我如何透過批次檔(.bat),直接輸入呢?!
以上 謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 203.64.128.2
1F:→ ksmrt0123:編一個in.txt 第一行放歲數 然後執行 test<in.txt 05/07 19:16
2F:推 ruemann:看不懂你要問的,不就是 test.exe 18 這樣? 05/08 15:17
3F:→ WolfLord:echo password | test.exe 05/08 19:03
4F:推 ksmrt0123:推W大的方法 很久沒用pipe了 05/08 23:17