Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run batch file
Message
De
24/09/2002 22:23:34
Wilfred Chan
Bnp Paribas Hong Kong Branch
Hong Kong, Hong Kong
 
 
À
24/09/2002 12:55:41
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00703275
Message ID:
00704069
Vues:
21
Hi,
Thanks, I filled the fourth parameter and it works.
It seems better to create Process than using ShellExecute. Am I right ?

:) Wilfred

>>Hi Ed Rauh,
>>
>>Thanks a lot. But it doesn't work with a DOS-Batch file.
>
>
>lcCmd=[Pkzip25 -add=update "]+slcZipName+ '" '+lcList+' >'+ForcePath('zip.log', ;
>   fullp(set('dire')))+chr(13)+chr(10) ;
>   +'exit '+chr(13)+chr(10)
>=strtofile(lcCmd, curd()+'zipit.bat')
>
>cmdl=fullp(curd()+'zipit.bat')
>lcThere=fullpath(".")
>oProcess=NewObject('api_apprun','process', '', cmdl, lcThere, 'HID')
>oProcess.LaunchAppAndWait
>Release oProcess
>
>This works for me - and as you see I'm creating the batch file on-the-fly. One thing, though: note the full paths everywhere.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform