Richard Korts
asked on
Rename files on Windows
I have a folder with 79 files, most of them *.PDF. I want to change *.PDF to *.pdf.
Of course windows is NOT case sensitive. I went to a command prompt , naved to the right folder (using DOS), entered "REN *.PDF *.pdf"; nothing happened.
How can I do that?
Thanks
Of course windows is NOT case sensitive. I went to a command prompt , naved to the right folder (using DOS), entered "REN *.PDF *.pdf"; nothing happened.
How can I do that?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I'm not sure if this is Windows version specific, but on my Windows 10 system it worked as you want just using the REN command. Here was my test:
B:\ee\temp\pdf>dir /b
file1.pdf
file2.PDF
B:\ee\temp\pdf>ren *.PDF *.pdf
B:\ee\temp\pdf>dir /b
file1.pdf
file2.pdf
~bp
ASKER
Perfect, thanks
Just curious, did you try my last post and it didn't work? Or just not see it? Seems like one REN is better than two, but wondering if you got different results.
~bp
~bp
ASKER
Bill Prew,
I did not try yours, it is identical to what I had already tried before I posted the question, did NOT work.
Thanks.
I did not try yours, it is identical to what I had already tried before I posted the question, did NOT work.
Thanks.
Just FYI if you did need it in the future
is also a one step rename.
forfiles /m *.pdf /c "cmd /c ren @path @fname.pdf"
is also a one step rename.
Okay, interesting, since as you can see it worked as needed on my Windows 10 system. Perhaps some other setting affects that, in localization or the like, although I'm not aware of one. Was this drive the files lived on a local drive, and an NTFS partition? And are you Win32 or Win64. Just trying to gather a little more info for future benefit, but if you have other things to work on that's fine too, don't let me slow you down. :-)
~bp
~bp
ASKER
Bill Prew,
It's a local hard drive. I don't know if it's 32 or 64; how do I find out?
And I don't have a lot of time to waste on this.
It's a local hard drive. I don't know if it's 32 or 64; how do I find out?
And I don't have a lot of time to waste on this.
Okay, we'll drop it then. Glad you got a solution.
~bp
~bp
Open in new window
Make sure you run CMD as admin. Add /s before /m if you want to recurse.