作者junorn (威廉華勒斯)
看板EZsoft
標題Re: [問題] 把.txt檔名自動改為內文第一行文
時間Mon Jan 21 21:39:26 2008
那不然就找sed windows用的版本
文字檔案為 111.txt
內容為
12345
23456
34567
然後打for /f "tokens=*" %a in ('sed "1!d" 111.txt') do ren 111.txt %a.txt
這樣看看....2000以上限定
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.228.100.163
※ 編輯: junorn 來自: 61.228.100.163 (01/21 21:39)
※ 編輯: junorn 來自: 61.228.100.163 (01/21 21:40)
1F:→ pc80015:謝謝~不過我用了arthurs21大大的方法囉^^ 01/22 04:27