CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
Renaming files in a dir


New User

Jan 25, 2010, 10:16 AM

Post #1 of 1 (3554 views)
Renaming files in a dir Can't Post


So here is the situation:

I have an old Mac computer that was previously owned by another employee. There is about 20 GB of data that I need to retrieve off the Mac hard drive, however, some of the files are named *file1.psd and "create Event from message\cE" Notice the star in front of the name and the \. Windows will not except characters like that. Who knows how long it will take to go through and change it manually, plus I'm at work placement and there's no way I'll have time to do it

I need help writing a script that will go through the directory and change all the files to the acceptable windows naming convention i.e removing all / * +... from file names.

The dir structure is multi-leveled with files on each level that need to be replaced.

in a nut shell
- I need a script that will go through a folder with multiple levels that will remove all the characters from the names that windows will not accept.

thanks a ton!


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives