How to rename multiple files with same name and different extensions?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















Screenshot



I have a number of files with the same name and different extensions in a folder. Originally these files were all in .jpg format with different names.



Like:

1.j87

1.j88

1.j89



Now I've to rename each image to different name and extension individually.



I found this, but I don't know how to use this script. Can someone help?










share|improve this question

























  • $i = 1 ; gci "C:pathToFolder" | rni $_ -newname ("filename" + $i + ".jpg") ; $i++ save this in a script.ps1 file and right click it and "execute with powershell" change filename and .xy to the name and extension you want. change C:pathtofolder to the folderpath where your files are

    – SimonS
    Oct 19 '17 at 11:19













  • Possible duplicate. superuser.com/questions/1088810/…

    – root
    Oct 19 '17 at 14:43


















1















Screenshot



I have a number of files with the same name and different extensions in a folder. Originally these files were all in .jpg format with different names.



Like:

1.j87

1.j88

1.j89



Now I've to rename each image to different name and extension individually.



I found this, but I don't know how to use this script. Can someone help?










share|improve this question

























  • $i = 1 ; gci "C:pathToFolder" | rni $_ -newname ("filename" + $i + ".jpg") ; $i++ save this in a script.ps1 file and right click it and "execute with powershell" change filename and .xy to the name and extension you want. change C:pathtofolder to the folderpath where your files are

    – SimonS
    Oct 19 '17 at 11:19













  • Possible duplicate. superuser.com/questions/1088810/…

    – root
    Oct 19 '17 at 14:43














1












1








1








Screenshot



I have a number of files with the same name and different extensions in a folder. Originally these files were all in .jpg format with different names.



Like:

1.j87

1.j88

1.j89



Now I've to rename each image to different name and extension individually.



I found this, but I don't know how to use this script. Can someone help?










share|improve this question
















Screenshot



I have a number of files with the same name and different extensions in a folder. Originally these files were all in .jpg format with different names.



Like:

1.j87

1.j88

1.j89



Now I've to rename each image to different name and extension individually.



I found this, but I don't know how to use this script. Can someone help?







windows-10 powershell rename batch-rename






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 5 at 19:25









Worthwelle

2,87831325




2,87831325










asked Oct 19 '17 at 5:15









ARJUNARJUN

63




63













  • $i = 1 ; gci "C:pathToFolder" | rni $_ -newname ("filename" + $i + ".jpg") ; $i++ save this in a script.ps1 file and right click it and "execute with powershell" change filename and .xy to the name and extension you want. change C:pathtofolder to the folderpath where your files are

    – SimonS
    Oct 19 '17 at 11:19













  • Possible duplicate. superuser.com/questions/1088810/…

    – root
    Oct 19 '17 at 14:43



















  • $i = 1 ; gci "C:pathToFolder" | rni $_ -newname ("filename" + $i + ".jpg") ; $i++ save this in a script.ps1 file and right click it and "execute with powershell" change filename and .xy to the name and extension you want. change C:pathtofolder to the folderpath where your files are

    – SimonS
    Oct 19 '17 at 11:19













  • Possible duplicate. superuser.com/questions/1088810/…

    – root
    Oct 19 '17 at 14:43

















$i = 1 ; gci "C:pathToFolder" | rni $_ -newname ("filename" + $i + ".jpg") ; $i++ save this in a script.ps1 file and right click it and "execute with powershell" change filename and .xy to the name and extension you want. change C:pathtofolder to the folderpath where your files are

– SimonS
Oct 19 '17 at 11:19







$i = 1 ; gci "C:pathToFolder" | rni $_ -newname ("filename" + $i + ".jpg") ; $i++ save this in a script.ps1 file and right click it and "execute with powershell" change filename and .xy to the name and extension you want. change C:pathtofolder to the folderpath where your files are

– SimonS
Oct 19 '17 at 11:19















Possible duplicate. superuser.com/questions/1088810/…

– root
Oct 19 '17 at 14:43





Possible duplicate. superuser.com/questions/1088810/…

– root
Oct 19 '17 at 14:43










4 Answers
4






active

oldest

votes


















0














I know how to accomplish this with Windows CMD shell after you change to the directory of your JPG files.



Save this script to a BAT file such as renamer.bat or any non-reserved command and execute it from your command prompt.



setlocal enabledelayedexpansion

set /a count=0
for /f "tokens=*" %%a in ('dir /b /od *.jpg') do (

ren %%a ArbitraryString!count!.jpg
set /a count+=1

)


Based on your question, it sounds like you also want to rename every *.jpg file something different than *.jpg, which would cream your file associations and make the images tedious to open. If this is REALLY TRUE, then substitute the Rename line with:



ren %%a ArbitraryString!count!.!count!jpg





share|improve this answer


























  • I appreciate if you can look into the image I've uploaded i.stack.imgur.com/Vvfdm.jpg

    – ARJUN
    Oct 19 '17 at 21:28





















0














In response to Arjun's comment 10/19 ~2100 UTC, you should execute this script in a batch file inside the same subdirectory as your files, it will rename the files A Random string of numbers.01.jpg and subsequent numbers until all files in the directory are processed. ALL files in those directories whether JPG or not will be renamed to a random name, sequential number and .jpg extension.



Any subdirectories will require executing the script inside those directories.



setlocal enabledelayedexpansion
set /a count=0
for /f "tokens=*" %%a in ('dir /b /od *.*') do (
ren %%a %random%!count!.jpg
set /a count+=1
)





share|improve this answer

































    0














    The script you found unconditionally renames all items to filename{sequence number from 1}.jpg from your current directory.
    Keep in mind that Rename or Move commands can be very destructive, especially when you don't exactly know what the code is.



    I change the code to be safer for you as this:



    Get-Item "2017-0~1.*" | ForEach-Object {

    $newName = $_.basename + $_.Extension.replace(".", "_") + ".jpg"
    Write-Host "rename-item" $_ $newName
    # rename-item $_ $newName
    }


    The code gets items named "2017-0~.*" in the current directory. For each item, rename the item by appending the extension ".jpg" to the end while the original extension dot and extension is changed to underscore and extension e.g. ".001" to "_001". In this case you can know what the original file name was.



    Note that the real action is commented.



    To execute the code:



    > cd c:toyourdirectory

    C:toyourdirectory> powershell

    PS C:toyourdirectory>


    Paste the code



    PS C:toyourdirectory> Get-Item "2017-0~1.*" | ForEach-Object {
    >>
    >> $newName = $_.basename + $_.Extension.replace(".", "_") + ".jpg"
    >> Write-Host "rename-item" $_ $newName
    >> # rename-item $_ $newName
    >> }
    >>

    PS C:toyourdirectory> exit

    C:toyourdirectory>





    share|improve this answer































      0














      If you are not comfortable using scripts you can rename the files using the excellent (and free) IrfanView, just follow the following steps:




      • Go to File > Batch Conversion/Rename....


      • In Work as select Batch rename.


      • In Batch rename settings change the default pattern of image### to image###.jpg as you want to change the extension too. This will name the files "image001.jpg", "image002.jpg", etc. (if you have more than 999 images in that folder use instead image####.jpg). You can configure other name pattern using the Options button.


      • In the explorer panel on the right select All files (*.*) in Type and go to the folder in which you have the files, then select the ones you want to rename and press Add (or press Add all if you want to to rename all the files of that folder).


      • In Output directory for result files press Use current ("look in") directory for selecting the same folder in which files are located, or use Browse to select a different one if you want to move renamed files to another folder.


      • Finally this press Start batch to begin the batch renaming.



      Note that as a safety measure by default IrfanView will make a copy of the files with the new names in the output folder, instead of just renaming the existing ones. To rename the original files go to the Options of Batch rename settings and change Copy original/input files to output directory to Move original/input files to output directory.






      share|improve this answer
























        Your Answer








        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "3"
        };
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function() {
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled) {
        StackExchange.using("snippets", function() {
        createEditor();
        });
        }
        else {
        createEditor();
        }
        });

        function createEditor() {
        StackExchange.prepareEditor({
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader: {
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1260416%2fhow-to-rename-multiple-files-with-same-name-and-different-extensions%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        4 Answers
        4






        active

        oldest

        votes








        4 Answers
        4






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        0














        I know how to accomplish this with Windows CMD shell after you change to the directory of your JPG files.



        Save this script to a BAT file such as renamer.bat or any non-reserved command and execute it from your command prompt.



        setlocal enabledelayedexpansion

        set /a count=0
        for /f "tokens=*" %%a in ('dir /b /od *.jpg') do (

        ren %%a ArbitraryString!count!.jpg
        set /a count+=1

        )


        Based on your question, it sounds like you also want to rename every *.jpg file something different than *.jpg, which would cream your file associations and make the images tedious to open. If this is REALLY TRUE, then substitute the Rename line with:



        ren %%a ArbitraryString!count!.!count!jpg





        share|improve this answer


























        • I appreciate if you can look into the image I've uploaded i.stack.imgur.com/Vvfdm.jpg

          – ARJUN
          Oct 19 '17 at 21:28


















        0














        I know how to accomplish this with Windows CMD shell after you change to the directory of your JPG files.



        Save this script to a BAT file such as renamer.bat or any non-reserved command and execute it from your command prompt.



        setlocal enabledelayedexpansion

        set /a count=0
        for /f "tokens=*" %%a in ('dir /b /od *.jpg') do (

        ren %%a ArbitraryString!count!.jpg
        set /a count+=1

        )


        Based on your question, it sounds like you also want to rename every *.jpg file something different than *.jpg, which would cream your file associations and make the images tedious to open. If this is REALLY TRUE, then substitute the Rename line with:



        ren %%a ArbitraryString!count!.!count!jpg





        share|improve this answer


























        • I appreciate if you can look into the image I've uploaded i.stack.imgur.com/Vvfdm.jpg

          – ARJUN
          Oct 19 '17 at 21:28
















        0












        0








        0







        I know how to accomplish this with Windows CMD shell after you change to the directory of your JPG files.



        Save this script to a BAT file such as renamer.bat or any non-reserved command and execute it from your command prompt.



        setlocal enabledelayedexpansion

        set /a count=0
        for /f "tokens=*" %%a in ('dir /b /od *.jpg') do (

        ren %%a ArbitraryString!count!.jpg
        set /a count+=1

        )


        Based on your question, it sounds like you also want to rename every *.jpg file something different than *.jpg, which would cream your file associations and make the images tedious to open. If this is REALLY TRUE, then substitute the Rename line with:



        ren %%a ArbitraryString!count!.!count!jpg





        share|improve this answer















        I know how to accomplish this with Windows CMD shell after you change to the directory of your JPG files.



        Save this script to a BAT file such as renamer.bat or any non-reserved command and execute it from your command prompt.



        setlocal enabledelayedexpansion

        set /a count=0
        for /f "tokens=*" %%a in ('dir /b /od *.jpg') do (

        ren %%a ArbitraryString!count!.jpg
        set /a count+=1

        )


        Based on your question, it sounds like you also want to rename every *.jpg file something different than *.jpg, which would cream your file associations and make the images tedious to open. If this is REALLY TRUE, then substitute the Rename line with:



        ren %%a ArbitraryString!count!.!count!jpg






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Oct 19 '17 at 5:46









        G-Man

        5,703112360




        5,703112360










        answered Oct 19 '17 at 5:34









        user783196user783196

        1




        1













        • I appreciate if you can look into the image I've uploaded i.stack.imgur.com/Vvfdm.jpg

          – ARJUN
          Oct 19 '17 at 21:28





















        • I appreciate if you can look into the image I've uploaded i.stack.imgur.com/Vvfdm.jpg

          – ARJUN
          Oct 19 '17 at 21:28



















        I appreciate if you can look into the image I've uploaded i.stack.imgur.com/Vvfdm.jpg

        – ARJUN
        Oct 19 '17 at 21:28







        I appreciate if you can look into the image I've uploaded i.stack.imgur.com/Vvfdm.jpg

        – ARJUN
        Oct 19 '17 at 21:28















        0














        In response to Arjun's comment 10/19 ~2100 UTC, you should execute this script in a batch file inside the same subdirectory as your files, it will rename the files A Random string of numbers.01.jpg and subsequent numbers until all files in the directory are processed. ALL files in those directories whether JPG or not will be renamed to a random name, sequential number and .jpg extension.



        Any subdirectories will require executing the script inside those directories.



        setlocal enabledelayedexpansion
        set /a count=0
        for /f "tokens=*" %%a in ('dir /b /od *.*') do (
        ren %%a %random%!count!.jpg
        set /a count+=1
        )





        share|improve this answer






























          0














          In response to Arjun's comment 10/19 ~2100 UTC, you should execute this script in a batch file inside the same subdirectory as your files, it will rename the files A Random string of numbers.01.jpg and subsequent numbers until all files in the directory are processed. ALL files in those directories whether JPG or not will be renamed to a random name, sequential number and .jpg extension.



          Any subdirectories will require executing the script inside those directories.



          setlocal enabledelayedexpansion
          set /a count=0
          for /f "tokens=*" %%a in ('dir /b /od *.*') do (
          ren %%a %random%!count!.jpg
          set /a count+=1
          )





          share|improve this answer




























            0












            0








            0







            In response to Arjun's comment 10/19 ~2100 UTC, you should execute this script in a batch file inside the same subdirectory as your files, it will rename the files A Random string of numbers.01.jpg and subsequent numbers until all files in the directory are processed. ALL files in those directories whether JPG or not will be renamed to a random name, sequential number and .jpg extension.



            Any subdirectories will require executing the script inside those directories.



            setlocal enabledelayedexpansion
            set /a count=0
            for /f "tokens=*" %%a in ('dir /b /od *.*') do (
            ren %%a %random%!count!.jpg
            set /a count+=1
            )





            share|improve this answer















            In response to Arjun's comment 10/19 ~2100 UTC, you should execute this script in a batch file inside the same subdirectory as your files, it will rename the files A Random string of numbers.01.jpg and subsequent numbers until all files in the directory are processed. ALL files in those directories whether JPG or not will be renamed to a random name, sequential number and .jpg extension.



            Any subdirectories will require executing the script inside those directories.



            setlocal enabledelayedexpansion
            set /a count=0
            for /f "tokens=*" %%a in ('dir /b /od *.*') do (
            ren %%a %random%!count!.jpg
            set /a count+=1
            )






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Oct 20 '17 at 2:10









            Scott

            16.2k113990




            16.2k113990










            answered Oct 20 '17 at 1:51









            user262656user262656

            1




            1























                0














                The script you found unconditionally renames all items to filename{sequence number from 1}.jpg from your current directory.
                Keep in mind that Rename or Move commands can be very destructive, especially when you don't exactly know what the code is.



                I change the code to be safer for you as this:



                Get-Item "2017-0~1.*" | ForEach-Object {

                $newName = $_.basename + $_.Extension.replace(".", "_") + ".jpg"
                Write-Host "rename-item" $_ $newName
                # rename-item $_ $newName
                }


                The code gets items named "2017-0~.*" in the current directory. For each item, rename the item by appending the extension ".jpg" to the end while the original extension dot and extension is changed to underscore and extension e.g. ".001" to "_001". In this case you can know what the original file name was.



                Note that the real action is commented.



                To execute the code:



                > cd c:toyourdirectory

                C:toyourdirectory> powershell

                PS C:toyourdirectory>


                Paste the code



                PS C:toyourdirectory> Get-Item "2017-0~1.*" | ForEach-Object {
                >>
                >> $newName = $_.basename + $_.Extension.replace(".", "_") + ".jpg"
                >> Write-Host "rename-item" $_ $newName
                >> # rename-item $_ $newName
                >> }
                >>

                PS C:toyourdirectory> exit

                C:toyourdirectory>





                share|improve this answer




























                  0














                  The script you found unconditionally renames all items to filename{sequence number from 1}.jpg from your current directory.
                  Keep in mind that Rename or Move commands can be very destructive, especially when you don't exactly know what the code is.



                  I change the code to be safer for you as this:



                  Get-Item "2017-0~1.*" | ForEach-Object {

                  $newName = $_.basename + $_.Extension.replace(".", "_") + ".jpg"
                  Write-Host "rename-item" $_ $newName
                  # rename-item $_ $newName
                  }


                  The code gets items named "2017-0~.*" in the current directory. For each item, rename the item by appending the extension ".jpg" to the end while the original extension dot and extension is changed to underscore and extension e.g. ".001" to "_001". In this case you can know what the original file name was.



                  Note that the real action is commented.



                  To execute the code:



                  > cd c:toyourdirectory

                  C:toyourdirectory> powershell

                  PS C:toyourdirectory>


                  Paste the code



                  PS C:toyourdirectory> Get-Item "2017-0~1.*" | ForEach-Object {
                  >>
                  >> $newName = $_.basename + $_.Extension.replace(".", "_") + ".jpg"
                  >> Write-Host "rename-item" $_ $newName
                  >> # rename-item $_ $newName
                  >> }
                  >>

                  PS C:toyourdirectory> exit

                  C:toyourdirectory>





                  share|improve this answer


























                    0












                    0








                    0







                    The script you found unconditionally renames all items to filename{sequence number from 1}.jpg from your current directory.
                    Keep in mind that Rename or Move commands can be very destructive, especially when you don't exactly know what the code is.



                    I change the code to be safer for you as this:



                    Get-Item "2017-0~1.*" | ForEach-Object {

                    $newName = $_.basename + $_.Extension.replace(".", "_") + ".jpg"
                    Write-Host "rename-item" $_ $newName
                    # rename-item $_ $newName
                    }


                    The code gets items named "2017-0~.*" in the current directory. For each item, rename the item by appending the extension ".jpg" to the end while the original extension dot and extension is changed to underscore and extension e.g. ".001" to "_001". In this case you can know what the original file name was.



                    Note that the real action is commented.



                    To execute the code:



                    > cd c:toyourdirectory

                    C:toyourdirectory> powershell

                    PS C:toyourdirectory>


                    Paste the code



                    PS C:toyourdirectory> Get-Item "2017-0~1.*" | ForEach-Object {
                    >>
                    >> $newName = $_.basename + $_.Extension.replace(".", "_") + ".jpg"
                    >> Write-Host "rename-item" $_ $newName
                    >> # rename-item $_ $newName
                    >> }
                    >>

                    PS C:toyourdirectory> exit

                    C:toyourdirectory>





                    share|improve this answer













                    The script you found unconditionally renames all items to filename{sequence number from 1}.jpg from your current directory.
                    Keep in mind that Rename or Move commands can be very destructive, especially when you don't exactly know what the code is.



                    I change the code to be safer for you as this:



                    Get-Item "2017-0~1.*" | ForEach-Object {

                    $newName = $_.basename + $_.Extension.replace(".", "_") + ".jpg"
                    Write-Host "rename-item" $_ $newName
                    # rename-item $_ $newName
                    }


                    The code gets items named "2017-0~.*" in the current directory. For each item, rename the item by appending the extension ".jpg" to the end while the original extension dot and extension is changed to underscore and extension e.g. ".001" to "_001". In this case you can know what the original file name was.



                    Note that the real action is commented.



                    To execute the code:



                    > cd c:toyourdirectory

                    C:toyourdirectory> powershell

                    PS C:toyourdirectory>


                    Paste the code



                    PS C:toyourdirectory> Get-Item "2017-0~1.*" | ForEach-Object {
                    >>
                    >> $newName = $_.basename + $_.Extension.replace(".", "_") + ".jpg"
                    >> Write-Host "rename-item" $_ $newName
                    >> # rename-item $_ $newName
                    >> }
                    >>

                    PS C:toyourdirectory> exit

                    C:toyourdirectory>






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Oct 20 '17 at 3:54









                    chingNotCHingchingNotCHing

                    666311




                    666311























                        0














                        If you are not comfortable using scripts you can rename the files using the excellent (and free) IrfanView, just follow the following steps:




                        • Go to File > Batch Conversion/Rename....


                        • In Work as select Batch rename.


                        • In Batch rename settings change the default pattern of image### to image###.jpg as you want to change the extension too. This will name the files "image001.jpg", "image002.jpg", etc. (if you have more than 999 images in that folder use instead image####.jpg). You can configure other name pattern using the Options button.


                        • In the explorer panel on the right select All files (*.*) in Type and go to the folder in which you have the files, then select the ones you want to rename and press Add (or press Add all if you want to to rename all the files of that folder).


                        • In Output directory for result files press Use current ("look in") directory for selecting the same folder in which files are located, or use Browse to select a different one if you want to move renamed files to another folder.


                        • Finally this press Start batch to begin the batch renaming.



                        Note that as a safety measure by default IrfanView will make a copy of the files with the new names in the output folder, instead of just renaming the existing ones. To rename the original files go to the Options of Batch rename settings and change Copy original/input files to output directory to Move original/input files to output directory.






                        share|improve this answer




























                          0














                          If you are not comfortable using scripts you can rename the files using the excellent (and free) IrfanView, just follow the following steps:




                          • Go to File > Batch Conversion/Rename....


                          • In Work as select Batch rename.


                          • In Batch rename settings change the default pattern of image### to image###.jpg as you want to change the extension too. This will name the files "image001.jpg", "image002.jpg", etc. (if you have more than 999 images in that folder use instead image####.jpg). You can configure other name pattern using the Options button.


                          • In the explorer panel on the right select All files (*.*) in Type and go to the folder in which you have the files, then select the ones you want to rename and press Add (or press Add all if you want to to rename all the files of that folder).


                          • In Output directory for result files press Use current ("look in") directory for selecting the same folder in which files are located, or use Browse to select a different one if you want to move renamed files to another folder.


                          • Finally this press Start batch to begin the batch renaming.



                          Note that as a safety measure by default IrfanView will make a copy of the files with the new names in the output folder, instead of just renaming the existing ones. To rename the original files go to the Options of Batch rename settings and change Copy original/input files to output directory to Move original/input files to output directory.






                          share|improve this answer


























                            0












                            0








                            0







                            If you are not comfortable using scripts you can rename the files using the excellent (and free) IrfanView, just follow the following steps:




                            • Go to File > Batch Conversion/Rename....


                            • In Work as select Batch rename.


                            • In Batch rename settings change the default pattern of image### to image###.jpg as you want to change the extension too. This will name the files "image001.jpg", "image002.jpg", etc. (if you have more than 999 images in that folder use instead image####.jpg). You can configure other name pattern using the Options button.


                            • In the explorer panel on the right select All files (*.*) in Type and go to the folder in which you have the files, then select the ones you want to rename and press Add (or press Add all if you want to to rename all the files of that folder).


                            • In Output directory for result files press Use current ("look in") directory for selecting the same folder in which files are located, or use Browse to select a different one if you want to move renamed files to another folder.


                            • Finally this press Start batch to begin the batch renaming.



                            Note that as a safety measure by default IrfanView will make a copy of the files with the new names in the output folder, instead of just renaming the existing ones. To rename the original files go to the Options of Batch rename settings and change Copy original/input files to output directory to Move original/input files to output directory.






                            share|improve this answer













                            If you are not comfortable using scripts you can rename the files using the excellent (and free) IrfanView, just follow the following steps:




                            • Go to File > Batch Conversion/Rename....


                            • In Work as select Batch rename.


                            • In Batch rename settings change the default pattern of image### to image###.jpg as you want to change the extension too. This will name the files "image001.jpg", "image002.jpg", etc. (if you have more than 999 images in that folder use instead image####.jpg). You can configure other name pattern using the Options button.


                            • In the explorer panel on the right select All files (*.*) in Type and go to the folder in which you have the files, then select the ones you want to rename and press Add (or press Add all if you want to to rename all the files of that folder).


                            • In Output directory for result files press Use current ("look in") directory for selecting the same folder in which files are located, or use Browse to select a different one if you want to move renamed files to another folder.


                            • Finally this press Start batch to begin the batch renaming.



                            Note that as a safety measure by default IrfanView will make a copy of the files with the new names in the output folder, instead of just renaming the existing ones. To rename the original files go to the Options of Batch rename settings and change Copy original/input files to output directory to Move original/input files to output directory.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Oct 27 '17 at 1:01









                            Alberto MartinezAlberto Martinez

                            1,235811




                            1,235811






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to Super User!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1260416%2fhow-to-rename-multiple-files-with-same-name-and-different-extensions%23new-answer', 'question_page');
                                }
                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                Probability when a professor distributes a quiz and homework assignment to a class of n students.

                                Aardman Animations

                                Are they similar matrix