windows rename files to lowercase
In this post:
- Rename extensions to lower case
- Rename extensions to upper case
- Rename whole file names
- Rename with Powershell (after Windows 7)
Rename extensions to lower case
Rename all files with extension .TXT to .txt
ren *.TXT *.txt
navigate to the directory with the files for renaming and run the command ren :
cd C:\folder
ren *.TXT *.txt
pause
Rename extensions to upper case
Rename all files with extension .csv to .CSV
ren *.csv *.CSV
Rename whole file names
The script below
cd C:\folder
for /f "Tokens=*" %f in ('dir /l/b/a-d') do (rename "%f" "%f")
pause
Rename with Powershell (after Windows 7)
The script below is applicable for Windows 7 and above because Windows PowerShell. In order to start PowerShell :
- go to start menu
- search for PowerShell
- then execute
Get-ChildItem "C:\folder" -recurse |
Where {-Not $_.PSIsContainer} |
Rename-Item -NewName {$_.FullName.ToLower()}