Question : how to run dos command in vb.net2003 windows application coding?

how to run dos command  in vb.net2003 windows application coding?

for example, I want to run  the following command in dos command

dotnetfx.exe /q:a /c:"install /l /q"

what is the code ?

Answer : how to run dos command in vb.net2003 windows application coding?

Hope this helps you,

        Dim p As Process
        p = New Process()

        p.StartInfo.FileName = "dotnetfx.exe"
        p.StartInfo.Arguments = "/q:a /c:'install /l /q'"
        p.Start()

you need to specify full path of the "dotnetfx.exe"
Random Solutions  
 
programming4us programming4us