>>oprocess=createobject('api_apprun', ' ', lcbatFile, lcThere, 'NOR')
>>Generated a 'must specify additional parameters' error.
>>
>>Removing the ' ' worked,
>
>Yes, that's a leftover parameter from Newobject() which has no use in CreateObject().
>
>>* but * the black DOS windows appears and the zipping is not visible at any time although the files zips successfully.
>>This occurs for both the 'NOR' and 'HID' params.
>
>Depends on what you use for zipping. If your zipping program is not entirely command-line, it may execute in something else apart from the command window. I'm using pkzip25 - which I'm not sure is still available anywhere.
>
>As for the last parameter - just read the code, there's plenty of comments inside the class, late Ed was verbose just enough, I'm sure you'll understand what's going on there and how did he do it. I havent opened this class for some three years now - I'm just using it :). So, you may need some trial and error tweaking your parameters - there are other values besides NOR and HID.
Dragan,
Found this snippet in another thread from Sergey:
Replacing the iccommandline with my 'macro' worked!
oRun = NEWOBJECT("api_apprun", "process")
oRun.icWindowMode = "HIDDEN"
oRun.iccommandline = "cmd /c NET VIEW > c:\temp\netview.txt"
oRun.launchappandwait()