vbscript - Rename a text file using batch or VBS -


I need to rename a text file using a batch file or a vbscript. The format of the Txt file is received as A353XXXXXXXX.txt and I need to change its name to just A353.txt. X is never the same, but the A353 is always the same. All the scripts I've tried are not executing properly. I need to rename the file in the first four characters of the filename. It sounds easy, but it fits me for some reason.

Rename using just:

  ren A353 *. Txt A353 Txt    

Comments

Popular posts from this blog

php - Creating canonical URLs with custom route-classes -

mysql - Formatting problem with PHP DateTime Difference when used as part of an equation -

Mysql Local server hardware -