Why Can’t I Rename Files to Upper or Lowercase on USB Drives

usb flash driveHere’s a user query where they’re unable to change the file name extension to lowercase from uppercase (or the other way) on external drives. For instance, the command-line to bulk change the extension (ren *.WAV  *.wav) may work on the system drive but not on an external drive.

Query:

My audio devices produce thousands of .WAV files — e.g., V001_20220621_023000.WAV. To analyze them, I use an R-package, but the scripts use”.wav“, so the commands do not work with my files. I tried to rename them with a couple of files in a test folder on the C: drive with “ren *.WAV *.wav“. This worked perfectly. BUT my files are stored on an external drive E:

So I set the path in cmd to the folder with my files (also a test folder, to be sure) and used the same command as before, but nothing happened. I searched through some forums for a solution, but could not find one. The files have no limitations for writing or reading. I run the cmd.exe as administrator. The external drive can be used by all users on the computer. There are no spaces in the file names. I’ve also tried renaming with Microsoft PowerToys PowerRename. That didn’t help.

Solution

Your external drive(s) may be formatted as FAT32. On FAT32 drives, changing the file names to lowercase can be done only if you make some other modification to the filename — e.g., change the file name or its extension.

In other words, if the rename operation is only for changing the capitalization/case of a file, then FAT32 doesn’t support it. It works if the rename operation is more than just changing a lowercase to a capital or vice versa.

Rename files or folders in two passes

To work around this, you can rename a file/folder or a set of files in two passes, as follows.

Example 1: To change a name/extension to lowercase:



If it’s a single file, you can simply use File Explorer to rename the file twice/2 passes. If using Command Prompt, try this:

  • ren Media.TXT to Media.txt.2022
  • ren Media.txt.2022 to media.txt

Note: Be sure to use a unique file name for renaming. If a file exists with the same name (e.g., Media.txt.2022) in that folder, there will be a conflict.

Example 2: To bulk change extension to lowercase (.WAV to .wav):

  • ren *.WAV   *.blahblah
  • ren *.blahblah  *.wav

I hope that helps.


One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support. It won't take more than 10 seconds of your time. The share buttons are right below. :)

Ramesh Srinivasan is passionate about Microsoft technologies and he has been a consecutive ten-time recipient of the Microsoft Most Valuable Professional award in the Windows Shell/Desktop Experience category, from 2003 to 2012. He loves to troubleshoot and write about Windows. Ramesh founded Winhelponline.com in 2005.

1 thought on “Why Can’t I Rename Files to Upper or Lowercase on USB Drives”

  1. This wasn’t the case with Windows 7 and 8. That is, you could do a case-change-only rename on FAT, FAT32 and ExFAT volumes in one step. Do you know what changed in Windows 10 to make it behave differently?

    Reply

Leave a Reply to Les Ferch Cancel reply