Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with RUN Command
Message
De
07/05/2000 07:26:05
 
 
À
07/05/2000 07:09:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00367068
Message ID:
00367071
Vues:
31
>Hello
>
>I try to run arj.exe form C:\Program Files\ with parameters.
>
>Example : RUN C:\Program Files\ NameOfApp\arj.exe A C:\Program Files\NameOfApp\Asubfolder\NameOfArj.arj C:\Program Files\NameOfApp\Asubfolder\*.DB*
>
>But the arj.exe do not accept \Program Files\. When I run the same with \Progra~1\ it works. Somebody now if VFP has a function like CURDIR() that not return the exact path but the truncate dos path.
>

There are several issues here - ARJ doesn't handle LFNs at all. You could use the Scripting.FileSystemObject GetFile() method to get a file object; the File object has the Shortname of the filew as one of its members. You can't use the short name of indefinite (wildcarded) files to specify things, since Windows doesn't know about the short name conversioj. ARJ will not permit you to restore the LFN, since the mapping between the original file name and the short name is not preserved. The solution here is to use something else like the Zip format which does handle LFNs.

There's also a Win32 API call that can convert an LFN to a short name; yiu could use that to resolve the path and use the wildcarding below the LFN portion of the path. Look in the FAQ.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform