I've created a simple batch file (as listed below) for renaming multiple files in the same directory:
Expand|Select|Wrap|Line Numbers
- @echo off
- SETLOCAL ENABLEDELAYEDEXPANSION
- SET old=EN
- SET new=_ENG
- for /f "tokens=*" %%f in ('dir /b *.890') do (
- SET newname=%%f
- SET newname=!newname:%old%=%new%!
- move "%%f" "!newname!"
- )
My problem is - I need this script to work in a network directory (not a local one) and the .bat script does not working in mine network environment.
I understood that there is a simple VBScript that does the same as mine .bat but also works in the network environment.
Thanks for your attention. I’m looking forward to your reply.
Miki