推 dcfgh:請人幫你寫個小程式吧 04/27 16:19
※ 發信站: 批踢踢實業坊(ptt.cc)
※ 轉錄者: perist (42.71.124.220), 04/27/2014 17:00:49
推 hirokofan:理論上可以用echo+type處理,但是以前我測試的結果是 04/27 17:08
→ hirokofan:type似乎會漏字orz 04/27 17:09
→ perist:可以指點一下嗎 我有研究cmd指令 不過完全超過我能力範圍 @ 04/27 18:03
→ perist:@ 04/27 18:03
→ perist:我Google到了 問題已解決 雖然我完全看不懂為什麼 = = 04/27 18:17
→ perist:for %I in (*.txt) do @echo ====%~nxI >>allfiles.txt && 04/27 18:18
→ perist:type "%~nxI" >>allfiles.txt 04/27 18:19
→ perist:感謝提供關鍵字 04/27 18:19
推 hirokofan:echo是叫出字串,type是列出文字檔,%~nxI是丟進for迴圈 04/27 21:59
→ hirokofan:的檔名,你可以用for/?去看。>>allfiles.txt是繼續寫入 04/27 22:01