example
Shell Environ("comspec") & " /c c:\dma\prg\pkunzip.exe c:\dma\download\tempfile.zip r* c:\dma\download"
Be careful, the standard shell command will start executing the line of code immediately after the shell command as soon as the shelled program is initialized. If the next lines of code depend upon the output of the program being shelled to, then the VB program may start executing sooner than you want.
I actually use a version of the shell function that we wrote, which has an option not to continue to the next statement in the VB program until the "shelled" program has completed. If you are interested, I can share the code with you. Otherwise, you may have to use a Loop to check for the existence of the output file before continuing program execution.
Another option is to use an zipping function that is already written in VB. Do an Internet search. You will probably find code out there that will let you provide the functionality of WinZip directly from your VB code.
Mitchell Sherry - Mid West Div. wrote:
Hi All~
Has anyone used BWS to execute WinZip ??? Feasible ??? Examples !!!???
thanx, sherry
HCA Midwest Division IT&S
Applications Programmer/Analyst
816/823-0406
-- Neil Carman Director Technical Development Manigault & Associates LLC
http://www.m-allc.com Work: (805) 680-5601 Fax: (714) 968-5632
