Computing Staff
  • 6

Batch Script To Rename File Extensions

  • 6

Hi all,

I was hoping you can help me with my struggle trying to write a batch script which will rename all “.txt” file to “.pip”

Every week or so I receive some text files which I need to change the extensions for before putting through some software. I previously wrote a vba script which would do the renaming for me, but our IT team in their infinite wisdom have decided to block all vba scripts and will not unblock them.

I have attempted to find some batch script online which will rename the file extensions however the problem is:

1) I cannot figure out how to rename all files in the same folder as the batch file
2) The script fails with the error “UNC paths are not supported for current directory”

Can anyone please help me put something together?

Many thanks

AWLT

Share