General discussion

Locked

\ / : * ? " < > |

By dhills ·
I need a utility that will replace the characters \ / : * ? " < > | in file names. MY network includes a bunch of Mac's (stop laughing) and the "Creative folks" insist on using these characters in their naming. I must find a way of doing this rename on an NT box that is faster than doing it one at a time. I have to do 3 or 4 hundred a day!

This conversation is currently closed to new comments.

10 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

\ / : * ? " < > |

by mark.tassin In reply to \ / : * ? " < > |

You're the network administrator right? I'd simply make it a policy that the use of the above characters is against network policy, and anybody using them will have his or her rights revoked. Explain the problem to management if needbe.

Otherwise... you could get a small 9mm Pistol and threaten the lives of those who continue such policies.

Collapse -

\ / : * ? " < > |

by dhills In reply to \ / : * ? " < > |

Unfortunatly the most frequent offenders are our customers. I did however discover that our Mac users can be shot but not in the head (I was nearly killed when the bullets ricocheted off their heads!

Collapse -

\ / : * ? " < > |

by Aaron_Wurthmann In reply to \ / : * ? " < > |

Gosh I hate when people answer my questions this way, but...
You need a Perl expert, I have seen/heard of some Perl scripts that you can run from an NT box that will conver the file names over. Do I have such scripts.. no. Do I know someone that does.. no. Am I any help other then suggesting a path.. no.

But thanks for the laugh all the same.. MACs.. HA HA HA HA..

PS
I'll ask around for a script here.. we have some Perl experts.

Collapse -

\ / : * ? " < > |

by dhills In reply to \ / : * ? " < > |

Laugh it up Perl man!!!

Collapse -

\ / : * ? " < > |

by stouk In reply to \ / : * ? " < > |

Additional question is: weather you want the conversion to be done whenever a new file is created with such a name or you just need an application (or a Script) which you can run manually (or using the Scheduler with a specified period of time) on your system to convert file names. If you want the utility to monitor file creation and change it whenever these characters are in the file name then you need to assign a job to a professional Windows NT API programmer who will create a Program, running in a background as a Service and will monitor the NTFS filesystem File Creation System Call, intercept it and varify if there are some characters there, you don't like.
On the other hand, if you are satisfied with the manually starting such application either each time you need to convert the characters or using the Microsoft Scheduler assign the utility to run, say every 5 minutes it's not a hard task to create either a Windows Host Script or as was advised above with the Perl Script, providing that you have a

Collapse -

\ / : * ? " < > |

by dhills In reply to \ / : * ? " < > |

It sounds like the original script that you wrote will work for my purposes. If you send it to me and it I will award you the points and be forever in your debt. My e-mail address is dhills@dingley.com

Collapse -

\ / : * ? " < > |

by stouk In reply to \ / : * ? " < > |

... Perl Engine on your system (which is free).
As a part of my Perl Language Lerning Project I created a program which substitutes the filename characters in the path and all subdirectories to other characters. I can send it to you by e-mail if you wish. It will take some time though to change the script so that it would maintain a text file like:
\ pattern1
/ pattern2
: pattern3
...
and change the filenames with the characters in the left column to specific patterns on the right and then, when needed, reverse them back for your creative guys to enjoy their original file names. But this part I won't do for free because it migh take 2-3 hours to create this utility and test it. Send me an e-mail to stouk@home.com and I will send to you my original 100% working Perl Script. You might modify it as you like yourself, this will be easier than create a new one from scratch.

Collapse -

\ / : * ? " < > |

by dhills In reply to \ / : * ? " < > |
Collapse -

\ / : * ? " < > |

by termiNaTor In reply to \ / : * ? " < > |

r u sure they are not just kidding around?

Tell it is too complicated, not cost effective and tell them as well to get a life

Sorry I am not being of much help but I think it is really funny

Collapse -

\ / : * ? " < > |

by dhills In reply to \ / : * ? " < > |

Mac user do not have a sense of humor that I am aware of.

Back to Windows Forum
10 total posts (Page 1 of 1)  

Related Discussions

Related Forums