Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run command
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00854764
Message ID:
00855114
Vues:
13
>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
Fil
Voir

Click here to load this message in the networking platform