|
|
楼主 |
发表于 2010-10-26 20:18:43
|
显示全部楼层
回复 #5 haiou327 的帖子
还是不可以。。。运行如下。
D:\>12.bat
D:\>for %c in (c d e f g h i j k l m n o p q r s t u v w
\windows\1.txt ren %c:\windows\2.txt )
D:\>(if exist c:\windows\1.txt ren c:\windows\2.txt )
D:\>(if exist d:\windows\1.txt ren d:\windows\2.txt )
命令语法不正确。
D:\>(if exist e:\windows\1.txt ren e:\windows\2.txt )
命令语法不正确。
D:\>(if exist f:\windows\1.txt ren f:\windows\2.txt )
D:\>(if exist g:\windows\1.txt ren g:\windows\2.txt )
D:\>(if exist h:\windows\1.txt ren h:\windows\2.txt )
D:\>(if exist i:\windows\1.txt ren i:\windows\2.txt )
D:\>(if exist j:\windows\1.txt ren j:\windows\2.txt )
D:\>(if exist k:\windows\1.txt ren k:\windows\2.txt )
D:\>(if exist l:\windows\1.txt ren l:\windows\2.txt )
D:\>(if exist m:\windows\1.txt ren m:\windows\2.txt )
D:\>(if exist n:\windows\1.txt ren n:\windows\2.txt )
D:\>(if exist o:\windows\1.txt ren o:\windows\2.txt )
D:\>(if exist p:\windows\1.txt ren p:\windows\2.txt )
D:\>(if exist q:\windows\1.txt ren q:\windows\2.txt )
D:\>(if exist r:\windows\1.txt ren r:\windows\2.txt )
D:\>(if exist s:\windows\1.txt ren s:\windows\2.txt )
D:\>(if exist t:\windows\1.txt ren t:\windows\2.txt )
D:\>(if exist u:\windows\1.txt ren u:\windows\2.txt )
D:\>(if exist v:\windows\1.txt ren v:\windows\2.txt )
D:\>(if exist w:\windows\1.txt ren w:\windows\2.txt )
D:\>(if exist x:\windows\1.txt ren x:\windows\2.txt )
D:\>(if exist y:\windows\1.txt ren y:\windows\2.txt )
D:\>(if exist z:\windows\1.txt ren z:\windows\2.txt ) |
|