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

Click here to load this message in the networking platform