Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FOR /R "C:UsersDummyDesktopUATSample" %%G in (.) DO (
- Pushd %%G
- Echo now in %%G
- echo before
- dir
- dir "*-01202018*"
- REM ren *-01202018.txt *.txt
- REM ren ???-01202018.txt ???.txt
- REM rename 's/-01202018//' *
- REM rename "*-01202018*" "*/////////*"
- echo after
- dir
- Popd )
- Echo "back home"
- PAUSE
Add Comment
Please, Sign In to add comment