Information générale
Catégorie:
Codage, syntaxe et commandes
>>&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!
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement