@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\j*.NC J-.nc
ren E:\FIM\k*.NC K-.nc
ren E:\FIM\l*.NC L-.nc
ren E:\FIM\m*.NC M-.nc
ren E:\FIM\n*.NC N-.nc
ren E:\FIM\o*.NC O-.nc
ren E:\FIM\p*.NC P-.nc
ren E:\FIM\q*.NC Q-.nc
ren E:\FIM\r*.NC R-.nc
ren E:\FIM\t*.NC T-.nc
ren E:\FIM\u*.NC U-.nc
ren E:\FIM\v*.NC V-.nc
ren E:\FIM\w*.NC W-.nc
ren E:\FIM\x*.NC X-.nc
ren E:\FIM\y*.NC Y-.nc
ren E:\FIM\z*.NC Z-.nc
ren E:\FIM\1*.NC 1-.nc
ren E:\FIM\2*.NC 2-.nc
ren E:\FIM\3*.NC 3-.nc
ren E:\FIM\4*.NC 4-.nc
ren E:\FIM\5*.NC 5-.nc
ren E:\FIM\6*.NC 6-.nc
ren E:\FIM\7*.NC 7-.nc
ren E:\FIM\8*.NC 8-.nc
ren E:\FIM\9*.NC 9-.nc
ren E:\FIM\0*.NC 0-.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\j*.NC J-.nc
ren E:\FIM\k*.NC K-.nc
ren E:\FIM\l*.NC L-.nc
ren E:\FIM\m*.NC M-.nc
ren E:\FIM\n*.NC N-.nc
ren E:\FIM\o*.NC O-.nc
ren E:\FIM\p*.NC P-.nc
ren E:\FIM\q*.NC Q-.nc
ren E:\FIM\r*.NC R-.nc
ren E:\FIM\t*.NC T-.nc
ren E:\FIM\u*.NC U-.nc
ren E:\FIM\v*.NC V-.nc
ren E:\FIM\w*.NC W-.nc
ren E:\FIM\x*.NC X-.nc
ren E:\FIM\y*.NC Y-.nc
ren E:\FIM\z*.NC Z-.nc
ren E:\FIM\1*.NC 1-.nc
ren E:\FIM\2*.NC 2-.nc
ren E:\FIM\3*.NC 3-.nc
ren E:\FIM\4*.NC 4-.nc
ren E:\FIM\5*.NC 5-.nc
ren E:\FIM\6*.NC 6-.nc
ren E:\FIM\7*.NC 7-.nc
ren E:\FIM\8*.NC 8-.nc
ren E:\FIM\9*.NC 9-.nc
ren E:\FIM\0*.NC 0-.nc
