Linking to an executable

S

SDS2

Hey,

I was wondering if i could make a program in Visual Studio 2008 with a link
to an executable (of an application like MS WORD) in it.
By pressing a button, the executable must start.
But now, i can't find the right code to do so.


Can anyone help me out?


Thanks in advance.



Stan
 
S

Scott M.

In your button's click event add:

System.Diagnostics.Process.Start(fullPathToExecutable)

-Scott M.
 

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