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

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
 
J

Jeroen Vandezande

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top