Windows 10: rename multiple files in a batch script to a new extension keeping the old extension as...

Discus and support rename multiple files in a batch script to a new extension keeping the old extension as... in Windows 10 Network and Sharing to solve the problem; I want to rename a file with a new extension but keep the exiting extension as part of the new file name. Example xxxxxx.xxx.xxx.f000 rename to... Discussion in 'Windows 10 Network and Sharing' started by pokjohn, Aug 31, 2021.

  1. pokjohn Win User

    rename multiple files in a batch script to a new extension keeping the old extension as...


    I want to rename a file with a new extension but keep the exiting extension as part of the new file name. Example xxxxxx.xxx.xxx.f000 rename to xxxxxx.xxx.xxx.f000.123."ren * *.123" just replaces the .f000 with .123.I want to keep the .f000 as part of the new filename.The current files have multiple extensions in sequence, .f000, .f003, .f006, etc.

    :)
     
    pokjohn, Aug 31, 2021
    #1

  2. Renaming Multiple File Extensions With a Batch File

    Hello,

    Pretty self explanatory question, but not turning up the results I need. If I use a command line window to change a bunch of file types, I can do the following:

    CD LocalDirectory\Is\Located\Here

    REN *.jpg *.tif

    This changes every file that has a JPG extension to a TIF. I'm trying to replicate the same thing, but do it in a batch file, but I keep throwing an error that says "The system cannot find the file specified." I'm not sure if the syntax has to be different
    as a batch file as opposed to just typing it into Windows Command Line itself. Here is the code I have now:

    Code:
    title Image File Extension ChangeECHO Finding directory, please wait.CD LocalDirectory\Is\Located\HereECHO Renaming files, please wait.
    
    ren *.jpg *.tif
    
    pause
    Thank you for the help!
     
    PeterThomas6, Aug 31, 2021
    #2
  3. I have mutiple files with extensions -Layout1. Does anyone know how to batch remove the extension? Thanks.

    Here you go:

    1. Open Windows Explorer.
    2. Navigate to the folder to be treated.
    3. Press Ctrl+L
    4. Type this command:

      cmd /c ren *.Layout1 *.
     
    Frederik Long, Aug 31, 2021
    #3
  4. JP-123 Win User

    rename multiple files in a batch script to a new extension keeping the old extension as...

    I have mutiple files with extensions -Layout1. Does anyone know how to batch remove the extension? Thanks.

    I have multiple files with extensions -Layout1. Does anyone know how to batch remove the extension? Thanks.
     
    JP-123, Aug 31, 2021
    #4
Thema:

rename multiple files in a batch script to a new extension keeping the old extension as...

Loading...
  1. rename multiple files in a batch script to a new extension keeping the old extension as... - Similar Threads - rename multiple files

  2. Is there a way to batch change multiple extensions to one?

    in Windows 10 Gaming
    Is there a way to batch change multiple extensions to one?: I have many pictures I created on an online Ai art generator website...but when I downloaded them the extensions changed from .jpg todownload - 2024-04-30T142255.998download - 2024-04-23T135602.987download - 2024-04-30T150153.982download - 2024-04-30T171628.979.....these...
  3. Is there a way to batch change multiple extensions to one?

    in Windows 10 Software and Apps
    Is there a way to batch change multiple extensions to one?: I have many pictures I created on an online Ai art generator website...but when I downloaded them the extensions changed from .jpg todownload - 2024-04-30T142255.998download - 2024-04-23T135602.987download - 2024-04-30T150153.982download - 2024-04-30T171628.979.....these...
  4. Find Files with Multiple Extensions

    in Windows 10 Software and Apps
    Find Files with Multiple Extensions: I just rebuilt my PC after being infected with Ransomware. I want to search my drive for any malware that might have multiple filename extensions. For example, a file that would be titled MyFile.txt.exe.I have file extensions showing, and hidden files showing as well.I tried...
  5. What happens if you rename a file extension to a ransomware extension?

    in AntiVirus, Firewalls and System Security
    What happens if you rename a file extension to a ransomware extension?: Hi,So I was reading about the SOVA ransomware when suddenly I started wondering about what would happen if I changed the file extension of a safe file to a ransomware's file extension for example, picture.jpg converts to picture.djvu, the extension for one of the oldest...
  6. batch renaming file extensions .WAV to .wav

    in Windows 10 Network and Sharing
    batch renaming file extensions .WAV to .wav: Hi folks,my audio devices produce thousands of .WAV files. To analyze them I use a R-package, but the scripts are using ".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 withren *.WAV *.wavThis...
  7. batch renaming file extensions .WAV to .wav

    in Windows 10 Gaming
    batch renaming file extensions .WAV to .wav: Hi folks,my audio devices produce thousands of .WAV files. To analyze them I use a R-package, but the scripts are using ".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 withren *.WAV *.wavThis...
  8. batch renaming file extensions .WAV to .wav

    in Windows 10 Software and Apps
    batch renaming file extensions .WAV to .wav: Hi folks,my audio devices produce thousands of .WAV files. To analyze them I use a R-package, but the scripts are using ".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 withren *.WAV *.wavThis...
  9. How to rename multiple sorted files while ignoring file extensions

    in Windows 10 Support
    How to rename multiple sorted files while ignoring file extensions: I have a problem with the batch rename feature in Windows 10. This is when you select multiple files, right click and select "rename" and then type in the new name into the first file's name field. This will make all selected files the name you typed in with an "(X)" after...
  10. Renaming Multiple File Extensions With a Batch File

    in Windows 10 Customization
    Renaming Multiple File Extensions With a Batch File: Hello, Pretty self explanatory question, but not turning up the results I need. If I use a command line window to change a bunch of file types, I can do the following: CD LocalDirectory\Is\Located\Here REN *.jpg *.tif This changes every file that has a JPG extension to...