I haven't written a root node in a while, so here goes.
Here, at my job, we use Office 2000, as well as Office XP. That's all fine and dandy. However, Word has this habit of saving unnmaed files (Document1, etc.) with names that are gathered from the first line of a long paragraph (for example: 'This is a very long paragraph that I am going to write, just as a proof of concept'). Again, that's all fine and dandy, even if the users save their data on our fileservers.
The problem comes in when I run backups at night. The backup program I use, named Backup Plus (very simple data backup utility), uses Zip compression to archive the data. If it runs into a file that has a name that's longer than 64 characters (I believe that's the limit of the NTFS file system in NTFS 4.0), the program barfs. Thus, my backups fail. This can be hazardous to my health if someone deletes their work and needs it restored.
I thought about renaming the files before the backups run. However, I'm not sure about how to rename files from within a Perl program.
I'm also kind of stuck on how to rename a binary file in Windows, considering that I wouldn't know whether or not a file is binary or not during runtime (I have to process several thousand files). I was thinking Win32::OLE would be of use here, but, then again, I don't know.
Theodore Charles III
Network Administrator
Los Angeles Senior High
4650 W. Olympic Blvd.
Los Angeles, CA 90019
323-937-3210 ext. 224
email->secon_kun@hotmail.com
perl -e "map{print++$_}split//,Mdbnr;"
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.