一句话解决问题:for /F %%A in ...


(XP/win2k命令行窗口中运行)

拷贝下面内容,存为 .bat 文件 例如 chname.bat (不要用rename, ren等系统内部命令作为文件名)

放入 *.jpg 相同目录,然后运行 chname

------------------------------------------------------
@echo off
for /F %%A in ('dir /B *.jpg') do (ren %%A 0%%A )
------------------------------------------------------

所有跟帖: 

万分感谢!!! -什么都想要- 给 什么都想要 发送悄悄话 (11 bytes) () 06/14/2004 postreply 21:05:46

Epimetheus, 又有新问题出现啦!!! -什么都想要- 给 什么都想要 发送悄悄话 (333 bytes) () 06/14/2004 postreply 22:42:49

回复:一句话解决问题:for /F %%A in ... -hehehehehr- 给 hehehehehr 发送悄悄话 (125 bytes) () 06/14/2004 postreply 23:31:06

楼上说的好象不行啊. -什么都想要- 给 什么都想要 发送悄悄话 (0 bytes) () 06/15/2004 postreply 00:41:54

请您先登陆,再发跟帖!