Please Help!!!!!!!!!<br>How can I run dos program with parameters from VB?<br>I want to run PKUNZIP (Dos version) & need to pass zip file name as the parameter. <br>
Try the Shell function (look in VB help) as in:<br>PathToPKunzip = "C:\PKUNZIP.EXE"<br>NameOfZipFile = "C:\MYSTUFF.ZIP"<br>RetVal = Shell(PathToPKunzip & " " & NameOfZipFile)<br><br>You would want to include any additional parameters (separated by spaces) after PathToPKunzip.<br><br>Hope this helps.<br> <p> <br><a href=mailto:InterruptX@excite.com>InterruptX@excite.com</a><br><a href=
Thanks for your answer.<br>I have tried it, but it is not unzipping the file instead it shows a warning....<br> filename already exists. Overwrite (y/n/a/r)?<br>I was surprised to see this message as there were no files exists in c:\ with that name.<br>Can you please help me to solve this problem?<br><br>
I assume that the warning is coming from PKunzip.<br>If you add the parameter "-o", PKunzip will automatically overwrite existing files (not always the best option, if you have made changes you want to preserve).<br><br>ZIPoptions = "-o"<br>RetVal = Shell(PathToPKunzip & " " & ZIPoptions & " " & NameOfZipFile)<br> <p> <br><a href=mailto:InterruptX@excite.com>InterruptX@excite.com</a><br><a href=
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.