Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Windows CLI: batch rename of filles; appending name


  • Please log in to reply
7 replies to this topic

#1 m1ckrz

m1ckrz

  • Members
  • 39 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Los Angeles
  • Local time:09:02 AM

Posted 13 June 2014 - 02:29 PM

So, I have a bunch of datasheets currently titled "[username].docx". I wanted to rename all the files, appending "infosheet" to the beginning, i.e. infosheet-[username].docx. I know I did it before but I can't find the guide that I used. Drop me a reference and I promise I'll save it somewhere =D. Thanks!



BC AdBot (Login to Remove)

 


#2 wpgwpg

wpgwpg

  • Members
  • 1,149 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:US of A
  • Local time:12:02 PM

Posted 13 June 2014 - 02:43 PM

 I don't have a magic command or app for you, but I believe the following should work.  Create a new folder to put these files in, let's call it C:\docxfiles, then copy them into it without any other files.  Now go to the command prompt and navigate to C:\docxfiles and issue this command: rename *.docx infosheet.*.docx.  

 

Good luck.


Everyone with a computer should back his system up to an external hard drive regularly.  :thumbsup:

#3 Kilroy

Kilroy

  • BC Advisor
  • 3,318 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Launderdale, MN
  • Local time:11:02 AM

Posted 16 June 2014 - 09:43 AM

Flexible Renamer (don't know if the URL is good, blocked at work)

 

I've found Flexible Renamer to be great for odd renaming tasks.


Edited by Kilroy, 16 June 2014 - 09:44 AM.


#4 hamluis

hamluis

    Moderator


  • Moderator
  • 55,378 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Killeen, TX
  • Local time:11:02 AM

Posted 16 June 2014 - 09:49 AM

...and I use a tool, Bulk Rename Utility, to rename any group of files :). You might look it up.

http://www.bulkrenameutility.co.uk/Main_Intro.php

Louis

Edited by hamluis, 16 June 2014 - 09:51 AM.


#5 m1ckrz

m1ckrz
  • Topic Starter

  • Members
  • 39 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Los Angeles
  • Local time:09:02 AM

Posted 01 July 2014 - 12:29 AM

The bulk rename tools worked great! wpgwpg's suggestion worked well also, but the bulk rename has a lot wider range of uses. Regardless, thanks for the great tips!



#6 hamluis

hamluis

    Moderator


  • Moderator
  • 55,378 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Killeen, TX
  • Local time:11:02 AM

Posted 01 July 2014 - 10:02 AM

Glad you found one to your liking...happy computing :).

 

Louis



#7 john.dee

john.dee

  • Members
  • 1 posts
  • OFFLINE
  •  
  • Local time:09:32 PM

Posted 24 July 2014 - 04:42 AM

It's really easy to rename Batch rename files. I suggest to try KrojamSoft BatchRenameFiles program.



#8 hamluis

hamluis

    Moderator


  • Moderator
  • 55,378 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Killeen, TX
  • Local time:11:02 AM

Posted 24 July 2014 - 10:33 AM

Why...would you suggest a tool requiring cash outlay....when free tools are available that do the job?

 

Louis






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users