[C#] How can I sart a process in cmd.exe from a winform ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I'd like to start dumpbin.exe from a windows form application.
However to start dumpbin.exe I need to start before cmd.exe with
vsvars32.bat to have the same configuration as visual studio prompt else
dumpbin does not work.

I know how I can start a process from a windows form application but I don't
know how I can start a process in another process.

I'd like to start cmd.exe and into cmd.exe I'd like to start dumpbin.exe.

Somebody knows how I can do it ?

Thanks
 
Freddyboy said:
Hi,

I'd like to start dumpbin.exe from a windows form application.
However to start dumpbin.exe I need to start before cmd.exe with
vsvars32.bat to have the same configuration as visual studio prompt else
dumpbin does not work.

I know how I can start a process from a windows form application but I
don't
know how I can start a process in another process.

I'd like to start cmd.exe and into cmd.exe I'd like to start dumpbin.exe.

Somebody knows how I can do it ?


Maybe you can make a new batchfile that you start from your app :

MyBatchFile.Bat

******Snip******

Call vsvars32.bat
dumpbin.exe

******Snip******


That should do the job...


Regards,

Jeroen Vandezande
 
Back
Top