You can use ren
(as in rename):
ren *.XXX *.YYY
And of course, switch XXX and YYY for the appropriate extensions. It will change from XXX to YYY. If you want to change all extensions, just use the wildcard again:
ren *.* *.YYY
One way to make this work recursively is with the FOR
command. It can be used with the /R
option to recursively apply a command to matching files. For example:
for /R %x in (*.txt) do ren "%x" *.renamed
will change all .txt
extensions to .renamed
recursively, starting in the current directory. %x
is the variable that holds the matched file names.
And, since you have thousands of files, make sure to wait until the cursor starts blinking again indicating that it’s done working.
Note: this works only on cmd. Won’t work on Powershell or Bash
Related Posts:
- How do I test if Python is installed on Windows (10), and run an exe to install it if its not installed?
- Windows equivalent to UNIX pwd
- “rm -rf” equivalent for Windows?
- “rm -rf” equivalent for Windows?
- How do I kill the process currently using a port on localhost in Windows?
- Windows 7 – ‘make’ is not recognized as an internal or external command, operable program or batch file
- Ping with timestamp on Windows CLI
- What is the Windows equivalent of the diff command?
- What is the reason for the error message “System cannot find the path specified”?
- How to run powershell script from .ps1 file?
- How to list files in windows using command prompt (cmd). I’ve tried using ‘ ls ‘ as in Linux but it shows an error?
- ” is not recognized as an internal or external command, operable program or batch file
- How can I open a cmd window in a specific location?
- Create an empty file on the commandline in windows (like the linux touch command)
- Need to navigate to a folder in command prompt
- How do I create a Batch file to change an exe installer to Win XP SP3 compatibility mode and launch installer
- ” is not recognized as an internal or external command, operable program or batch file
- Access is denied in windows cmd.Why?
- How to “comment-out” (add comment) in a batch/cmd?
- The filename, directory name, or volume label syntax is incorrect inside batch
- Moving file using cmd?
- How to force `findstr` to ignore `Cannot open` returns
- How to “comment-out” (add comment) in a batch/cmd?
- “if not exist” command in batch file
- “if not exist” command in batch file
- Defining and using a variable in batch file
- How to run PowerShell in CMD
- How to open an elevated cmd using command line for Windows?
- xcopy returns error “Invalid number of parameters” when exclude parameter is set
- What is the reason for the CD /D switch in Windows cmd?
- PHP is not recognized as an internal or external command in command prompt
- ‘openssl’ is not recognized as internal or external command
- XCOPY: Overwrite all without prompt in BATCH
- Curl not recognized as an internal or external command, operable program or batch file
- Redirecting Output from within Batch file
- How does the echo command works in batch programming
- How to split large text file in windows?
- Windows CMD command for accessing usb?
- How do I use spaces in the Command Prompt?
- Calling dir in cmd prints out: “Volume in drive C has no label.”
- Command prompt won’t change directory to another drive
- How to extract or unpack an .ab file (Android Backup file)
- Desktop: The system cannot find the specified path
- ‘python’ is not recognized as an internal or external command [duplicate]
- How can I update npm itself?
- Can’t start Eclipse – Java was started but returned exit code=13
- What does “@” mean in Windows batch scripts
- How to run a PowerShell script
- How do I install and use cURL on Windows?
- How can I clear console
- How to go from fopen to fopen_s
- Copying a local file from Windows to a remote server using scp
- “X does not name a type” error in C++
- Installing tensorflow with anaconda in windows
- error: Unable to find vcvarsall.bat
- How to jump in Unity 3d?
- How to run a makefile in Windows?
- MinGW: “gcc is not recognized as an internal or external command”
- How to exit Python script in Command Prompt?
- Verify return code: 20 when testing OpenSSL
- Extracting .jar file with command line
- How To Activate Windows 10
- What is the difference between Cygwin and MinGW?
- Using GNU Scientific Library (GSL) under Windows x64 with MinGW
- Compare 2 directories in windows
- Can’t start hostednetwork
- Pip – Fatal error in launcher: Unable to create process using ‘”‘
- OpenSSL: PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICATE
- python is not recognized windows 10
- Python not working in the command line of git bash
- Bluescreen on windows 10 after using android emulator
- Setting up a cron job in Windows
- While loop in batch
- Error occurred during initialization of VM (java/lang/NoClassDefFoundError: java/lang/Object)
- Bridged networking not working in Virtualbox under Windows 10
- OS x El capitan 10.11 – Virtualbox – Missing Bluetooth Controller Transport
- mysql community server vs mysql installer
- What is a Windows Handle?
- Error: Could not find or load main class net.minecraft.launchwrapper.Launch when launching Minecraft 1.12.2 with Forge
- npm install with error: `gyp` failed with exit code: 1
- Using sys/socket.h functions on windows
- Systrace for Windows
- The requested operation cannot be performed on a file with a user-mapped section open
- How to set commands output as a variable in a batch file
- Unable to start MySQL server
- Dependency Walker: missing dlls
- How do I execute a *.dll file
- How to enable Bash in Windows 10 developer preview?
- All links in my site start with localhost?
- Can’t connect to my WordPress website using Windows 8 app?
- Connect to MySQL using Windows Authentication
- Newbie: Multiple WP sites on Windwos 2012 IIS
- How to update WP-CLI on Windows via Composer?
- Upload media error: unable to create directory (windows hosting)
- Saving Permalinks Results in 403 MAMP (Windows)
- How to sleep in a batch file?
- Does Windows have a built-in ZIP command for the command line?
- Best practice: Should I always install a fresh OS for new employees?
- How can I tell what version of IIS is installed?
- What is the Windows equivalent of Unix “whoami” command?