Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run batch file
Message
De
24/09/2002 12:55:41
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
23/09/2002 23:04:45
Wilfred Chan
Bnp Paribas Hong Kong Branch
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00703275
Message ID:
00703850
Vues:
18
This message has been marked as a message which has helped to the initial question of the thread.
>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.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform