Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run batch file
Message
From
24/09/2002 12:55:41
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
23/09/2002 23:04:45
Wilfred Chan
Bnp Paribas Hong Kong Branch
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00703275
Message ID:
00703850
Views:
17
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform