Information générale
Catégorie:
Codage, syntaxe et commandes
>When I execute the following command from either the command window or from an application executed in the command window it works OK. However, when I attempt to execute from the desktop (run the executable) it only executes the PKZIP portion of the command (ie, does not pick up the parameters).
>
> RUN PKZIP -& *.dbf *.cdx *.fpt
Try this:
(note that if pkzip is the old DOS zip program, then spaces in the current path will cause problems...)
lcWorkDir = set('defa')+curdir()
DECLARE INTEGER ShellExecute ;
IN SHELL32.DLL ;
INTEGER nWinHandle,;
STRING cOperation,;
STRING cFileName,;
STRING cParameters,;
STRING cDirectory,;
INTEGER nShowWindow
if 32 "-& "+lcWorkDir+"outfile.zip *.dbf *.cdx *.fpt", lcWorkDir, 1)
* Success
endif
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