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

How to batch edit filename in Windows 7?


  • Please log in to reply
3 replies to this topic

#1 crossbone

crossbone

  • Members
  • 5 posts
  • OFFLINE
  •  
  • Local time:11:02 AM

Posted 21 January 2016 - 09:24 AM

I have a folder with a lot of files that need to have their names edited. The original format is ABC%20DEF%20GHI%20JKL.xyz. What I need to do is to replace each "%20" with "_". I would rather run a script than download a program if possible. Unfortunately I have very little experience when it comes to using the command line, but would like to learn. Any good recommendation on where to start(website, books etc)?

Thanks!



BC AdBot (Login to Remove)

 


#2 JohnC_21

JohnC_21

  • Members
  • 24,282 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:12:02 PM

Posted 21 January 2016 - 09:33 AM

I don't have much experience with it but you want to use Powershell and not the regular command line. 

 

This will get you started. You can google for books and articles on Powershell. 

 

http://blogs.technet.com/b/heyscriptingguy/archive/2013/11/22/use-powershell-to-rename-files-in-bulk.aspx



#3 crossbone

crossbone
  • Topic Starter

  • Members
  • 5 posts
  • OFFLINE
  •  
  • Local time:11:02 AM

Posted 21 January 2016 - 10:19 AM

It works! Thanks a lot, dude!



#4 JohnC_21

JohnC_21

  • Members
  • 24,282 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:12:02 PM

Posted 21 January 2016 - 10:22 AM

No problem. Glad that worked for you.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users