charvett
asked on
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!
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!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
---
Harish