I need to rename a text file using either a batch file or a vbscript. The format of the txt file is received as A353XXXXXXXX.txt and I need it to be renamed to simply A353.txt. The X’s are never the same but the A353 is always the same. All scripts that I have tried are not executing properly. I need it to rename the file by the first four characters of the file name. It seems easy but it is giving me fits for some reason.
Share
Just rename using: