|
Question : FOR /F Syntax in a batch file
|
|
I'm trying to figure out the correct syntax for:
FOR /f "tokens=1,2,3,4 delims=." %a in ('dir /a-d /b access.abc.*') do echo ren "%a.%b.%c.%d" "%a.%c.%d"
Works fine from the command line but not within a batch file.
Thanks!
|
|
Answer : FOR /F Syntax in a batch file
|
|
charvett,
FOR /f "tokens=1,2,3,4 delims=." %%a in ('dir /a-d /b access.abc.*') do echo ren "%%a.%%b.%%c.%%d" "%%a.%%c.%%d"
|
|
|
|