How I can use DOS Command in VB.NET?

1. Using Process. Start directly: Imports System.

Diagnostics ... Process. Start("rar. Exe", "a -rr10 -s c:\backup.

Rar c:\file. Txt") 2. Using ProcessStartInfo : Imports System.

Diagnostics ... Dim startInfo As New ProcessStartInfo("rar. Exe") startInfo. Arguments = "a -rr10 -s c:\backup.

Rar c:\file. Txt" ' ... possibly set other parameters here... ' Process. Start(startInfo) (Of course you might have to specify the path to rar.

Exe if it's not in the current directory. ).

1. Using Process. Start directly: Imports System.

Diagnostics ... Process. Start("rar. Exe", "a -rr10 -s c:\backup.

Rar c:\file. Txt") 2. Using ProcessStartInfo: Imports System.

Diagnostics ... Dim startInfo As New ProcessStartInfo("rar. Exe") startInfo. Arguments = "a -rr10 -s c:\backup.

Rar c:\file. Txt" ' ... possibly set other parameters here... ' Process. Start(startInfo) (Of course you might have to specify the path to rar.

Exe if it's not in the current directory. ).

Thank you. But we must give the full path of rar. Exe otherwise it will not worked.

– Saman Zia Jul 11 at 2:01.

I want to I want to perform dos command (copy) in vb.net. I want to do it on button click event. Invoking the command using .

Bat format is not suit for me, because the source and destination of copying depending upon the selection of source and destination(that's done by users of this application). Please help me.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions