@echo off
for %%i in ( e ) do (
if exist %%i:\FIM\*.nc set drive=%%i&goto another
)
goto :eof
:another
ren E:\FIM\a*.NC A-.nc
ren E:\FIM\b*.NC B-.nc
ren E:\FIM\c*.NC C-.nc
ren E:\FIM\d*.NC D-.nc
ren E:\FIM\e*.NC E-.nc
ren E:\FIM\f*.NC F-.nc
ren E:\FIM\g*.NC G-.nc
ren E:\FIM\h*.NC H-.nc
ren E:\FIM\i*.NC I-.nc
本人很菜,.刚入门,只能这样写,.不让重复,..有没有精简一点的办法
最好加上 ren E:\FIM\A?A*.NC AA-.nc 类似这样的
for %%i in ( e ) do (
if exist %%i:\FIM\*.nc set drive=%%i&goto another
)
goto :eof
:another
ren E:\FIM\a*.NC A-.nc
ren E:\FIM\b*.NC B-.nc
ren E:\FIM\c*.NC C-.nc
ren E:\FIM\d*.NC D-.nc
ren E:\FIM\e*.NC E-.nc
ren E:\FIM\f*.NC F-.nc
ren E:\FIM\g*.NC G-.nc
ren E:\FIM\h*.NC H-.nc
ren E:\FIM\i*.NC I-.nc
本人很菜,.刚入门,只能这样写,.不让重复,..有没有精简一点的办法
最好加上 ren E:\FIM\A?A*.NC AA-.nc 类似这样的
