Batch file to rename 1500 files, replacing "%20" with a space.
Posted on 2010-11-24
I have to remote into a computer running Windows XP and ***without installing any software*** rename about fifteen hundred files that accidentally got renamed when I unzipped an archive. The files had spaces in the names, but the spaces were replaced with "%20". I need to rename them, replacing the %20 with a space. The file names are of various lengths, some have two words some more, i.e. "Document%20Management.xml" or "Pie%20Chart%20Color%20Scheme.xml". The should be "Document Management.xml" and "Pie Chart Color Scheme.xml".
My first thought was PowerShell, but this is a Windows XP computer and I CAN NOT install any new utility or software under threat of unemployment (so please don't send me a freaking link to Bulk Rename Utility, I have it, but I can't use it on the computer I have to remote into to rename the files and it's not on that computer). I have to use what already exists on that corporate Win XP box. So it looks like DOS Batch is what I have to work with.
Thank you very much for any help.