Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: windows file name probs

by t0mas (Priest)
on Jun 06, 2002 at 05:59 UTC ( [id://172083]=note: print w/replies, xml ) Need Help??


in reply to windows file name probs

The Win32 module comes with an interface to the GetShortPathName function.
GetShortPathName makes a DOS (8.3) path of any valid Win32 path and will remove all spaces.

The following code will start notepad (or whatever you have associated with .ini) and load c:\Program Files\desktop.ini
#!/usr/bin/perl -w use strict; use Win32; system(Win32::GetShortPathName('c:\Program Files\desktop.ini'));

OK, silly example, but...

/brother t0mas

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-03-28 17:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found