Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Long filenames and the run command
Message
From
29/07/1999 14:05:50
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00247690
Message ID:
00247820
Views:
21
>>&RUN lcRunCmd
>
>part of the problem is that the line should read:
>
>RUN &lcRunCmd

Sorry, that was a typo.
>
>Some things to be aware of:
>
>First, if an LFN contains a space, you MUST encapsulate the path in double quotes when passing it on the command line; IOW, if you want to reference the file:
>
>C:\My Program\Some Directory\ a file name.txt
>
>and put it in myZip.ZIp, the command line would have to read:
>
>PKZIP -a MyZip "C:\My Program\Some Directory\ a file name.txt"
>
>Second, PKZIP ius clueless about handling LFNs; you'll want to get the equivalent short file name for the long file name(s) or path(s) for use in your command line. There's sample code in the FAQ showing how to get the Short File Name of a Long File name using an API call (I wrote it) called How do I determine the Short version of a Long File Name under Win32 and Other APIs.
>
>Good luck!


As for your function. Liked it. Copied it. Used it. Thanks man, it works like a champ!
Previous
Reply
Map
View

Click here to load this message in the networking platform