Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RUN a exe whose path contains spaces
Message
From
22/10/1997 10:27:06
 
 
To
22/10/1997 08:31:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00055090
Message ID:
00056024
Views:
34
>>Hi Bill!
>>
>>Take a look at my Sysinfo class (right here in UT Files). Among the other,
>>this class have the method for obtaining shortname from longname. In short:
>>you can use GetShortPathName API call for your stuff
>>
>>>Without knowing the names ahead of time, do you have a suggestion on how
>>I
>>>could acquire the 8.3 file name dynamically? It woulds be the solution I
>>
>>>need.
>
>
>I just downloaded it and will let you know how things are going.
>
>Thanks,
>
>Bill Wilson

Vladimir:

I downloaded your sysinfo.fxp file, however I cannot get to work with my project. When I build the EXE VFP wants to build the sysinfo app and ka-boom it dies.

I did however take your idea to heart and did the following:

DECLARE INTEGER GetShortPathName IN kernel32 AS GSPN;
STRING cLongPath, ;
STRING @ cShortPath,;
INTEGER nsize

cShort = SPACE( 250 )
nSize = GSPN( , @cShortPath, 250 )
cShortPath = LEFT( cShortPath, nSize ) &&truncate the nulls

and then I use the macro of cShortPath along with parameters for the run command.

Thanks for your suggestion.

Bill Wilson
Previous
Reply
Map
View

Click here to load this message in the networking platform