December 3, 200520 yr Hey,I'm currently using a batch file where I copy winrar to dest folder and then run "cd C:\folder" and then "winrar <string>". I wanted to know if I can do those steps directly from vb.net (a process will only allow 1 command, right?)...the batch solution is not good at all, albeit it works.rar string:winrar U -cl -s -md4096 -dh -df -mmf -v2923 -r -ep1 -m5 -xWinRar.exe filename
December 4, 200520 yr I'm pretty sure you could:'You can: Shell("rar.exe -whatever -whatever", AppWinStyle.Hide, True) 'Or Dim x As Process = Process.Start("rar.exe", "-whatever - whatever lalala") x.WaitForExit()Didn't there used to be a Winrar class library? I can't find it anywhere.
December 23, 200520 yr I'm pretty sure you could: 'You can: Shell("rar.exe -whatever -whatever", AppWinStyle.Hide, True) 'Or Dim x As Process = Process.Start("rar.exe", "-whatever - whatever lalala") x.WaitForExit()correct
December 24, 200520 yr If you want the simplest, most efficient solution available, the batch file would be the way to go, since they are specifically designed to run commands that way.You will find that your VB "program" is now much larger than the batch file but performs the same function.
Create an account or sign in to comment