Windows 8 and 8.1 Forums


file renaming help?

  1. #1


    Posts : 3
    win 8.1

    file renaming help?


    i have a bunch of directories, each one contains exactly 1 jpg file, What I would like to do is to rename all the files cover.jpg, but when I do search on *.jpg and try to rename, it renames every file to cover(1).jpg

    Is there a way I can rename the files without tedious folder-by-folder renaming?

      My System SpecsSystem Spec

  2. #2


    Posts : 2,130
    Windows 8.0 x64


    Are the directories all in the same tree? If they all descend from the same folder open a command prompt in that folder. For example if they are all under C:\top open a command prompt in c:\top then enter this command
    For /R %s in (*.jpg) do ren %s cover.jpg

    and hit enter.

    Edit: It should work as long as there is only one .jpg in each folder. (I hope.)
      My System SpecsSystem Spec

  3. #3


    Posts : 3
    win 8.1


    tried it in test folder (Uusi kansio) where is 2 subfolders, both include 1 jpg file:

    C:\Uusi kansio>For /R %s in (*.jpg) do ren %s cover.jpg

    C:\Uusi kansio>ren C:\Uusi kansio\asfdafa\00_dance_with_the_dead_-_into_the_abys
    s-web-2014-cover-cruelty.jpg cover.jpg
    The syntax of the command is incorrect.


    C:\Uusi kansio>ren C:\Uusi kansio\dsfg\00_dance_with_the_dead_-_out_of_body-web-
    2013-cover-cruelty.jpg cover.jpg
    The syntax of the command is incorrect.
    Last edited by roseilikkalol; 10 Sep 2014 at 16:41.
      My System SpecsSystem Spec

  4. #4


    Posts : 2,130
    Windows 8.0 x64


    That's because there is a space in the path most likely.

    Try this
    For /R %s in (*.jpg) do ren "%s" cover.jpg

    or just eliminate the spaces. Spaces in file paths is just asking for trouble. Thousands of errors are caused just because the default exe install folder is Program Files. It always comes back to bite.
      My System SpecsSystem Spec

  5. #5


    Posts : 3
    win 8.1


    nice Thanks! that did the trick
      My System SpecsSystem Spec

  6. #6


    Posts : 2,130
    Windows 8.0 x64


    Glad it worked for you.
      My System SpecsSystem Spec

file renaming help?
Related Threads
Renaming a User Account: A Bad Idea?? in User Accounts and Family Safety
Friends I have a question: under Windows 7, I have seen "unintended consequences" of renaming a User Account - sooner or later running into permissions difficulties, path confusion, etc. I have a fairly fresh laptop I just updated to 8.1 and am trying to get it ready for production environment. ...
Renaming Shenanigans in General Support
Here we go again, another issue that shouldn't even be possible. If you have multiple video or image files in a folder and they have different formats, i.e wmv mov mpg try to rename them all to one name. Guess what... a huge jumbled mess. A whole bunch of files with the same name. Why would...
I've recently got a new laptop with windows 8. I am in the process of trying to upload my cd collection to my computer. Some of my cds are old mix disks that when ripped by windows media player do not have all of the information properly loaded such as artist/album/etc... So I started manually...
Solved Renaming user account folder in User Accounts and Family Safety
del
Wireless Keyboard Renaming Issues in Drivers & Hardware
Hi, I recently purchased a second hand wireless keyboard, which already has an assigned name corresponding to that of the previous owner. I can not find a way to rename the device on the windows 8 settings - would anyone be able to advise me? I would rather avoid editing the registry if...
Whenever I try to rename a folder connected to a html file I get a box that pops up and asks if I'm sure I want to rename it as the associated html file might not work properly. I'm not getting an option to not show the message again and I can't see anything to fix this in folders options - view...
I've been getting a "File Access Denied, You'll need to provide administrator permission to rename this file", popup window even with UAC turned off? The files in question are shortcuts in the C:\ProgramData\Microsoft\Windows\Start Menu\Programs. It also happens in ...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook