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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

 



Jlog26
New User

Jan 25, 2010, 10:16 AM

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

Hello

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