nOBeLium Posted December 3, 2005 Share Posted December 3, 2005 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 Link to comment Share on other sites More sharing options...
Dayon Posted December 4, 2005 Share Posted December 4, 2005 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. Link to comment Share on other sites More sharing options...
ColdFusion200 Posted December 23, 2005 Share Posted December 23, 2005 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 Link to comment Share on other sites More sharing options...
LLXX Posted December 24, 2005 Share Posted December 24, 2005 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now