Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: The Office suite and long file names

by seattlejohn (Deacon)
on Oct 24, 2002 at 07:32 UTC ( [id://207638]=note: print w/replies, xml ) Need Help??


in reply to The Office suite and long file names

Others have already answered your specific question, but as a general reminder... When you don't know how to do it in Perl, but you do know how to do it at your DOS prompt (or equivalent), it's useful to know that backticks execute a system/shell command: my $result = `ren $original_filename $new_filename`; $result contains any output from the ren command (which is silent if it succeeds), and $? contains the numeric exit code from the command.

The command in the backticks isn't portable, of course, but since you're running into a Windows-specific problem that's unlikely to be a concern here.

        $perlmonks{seattlejohn} = 'John Clyman';

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://207638]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2024-03-28 09:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found