eugenechang wrote:
for %i in (*.*) do ren %i A%i
真好玩, 不過剛試了一下, 好奇怪呀
原本是
2007/12/30 下午 01:31 <DIR> .
2007/12/30 下午 01:31 <DIR> ..
2007/12/30 下午 01:24 0 123.txt
2007/12/30 下午 01:24 0 456.txt
2007/12/30 下午 01:24 0 789.txt
使用上述指令後
C:\Documents and Settings\MIE\桌面\test>for %i in (*.txt) do ren %i a%i
C:\Documents and Settings\MIE\桌面\test>ren 123.txt a123.txt
C:\Documents and Settings\MIE\桌面\test>ren 456.txt a456.txt
C:\Documents and Settings\MIE\桌面\test>ren 789.txt a789.txt
C:\Documents and Settings\MIE\桌面\test>ren a123.txt aa123.txt
不知道為何多出紅色那行?
檔名也真的被多改一次, 變成
2007/12/30 下午 01:31 <DIR> .
2007/12/30 下午 01:31 <DIR> ..
2007/12/30 下午 01:24 0 a456.txt
2007/12/30 下午 01:24 0 a789.txt
2007/12/30 下午 01:24 0 aa123.txt
為什麼會這樣哩
