General information
Category:
Coding, syntax & commands
>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only