Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: execute a file

by RhetTbull (Curate)
on Apr 13, 2001 at 17:34 UTC ( [id://72334]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    DWORD GetShortPathName(
      LPCTSTR lpszLongPath,  // null-terminated path string
      LPTSTR lpszShortPath,  // short form buffer
      DWORD cchBuffer        // size of short form buffer
    );
    
  2. or download this
    use Win32::API;
    
    ...
    $shortname = substr($shortname,0,$retval);
    
    print "longname = \n\"$longname\", \nshortname = \n\"$shortname\"";
    
  3. or download this
    C:\temp>perl shortname.pl
    longname =
    ...
    shortname =
    "C:\PROGRA~1\MICROS~3\Office\OLREAD9.TXT"
    C:\temp>
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-04-19 13:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found