Jump to content

Recommended Posts

Posted

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


Posted

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.

  • 3 weeks later...
Posted
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

Posted

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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...