Linking to an executable

  • Follow


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 

0
Reply SDS2 1/31/2010 3:27:17 PM

In your button's click event add:

System.Diagnostics.Process.Start(fullPathToExecutable)

-Scott M.

"SDS2" <nomailtoSDS@collegewaregemdeletethis.com> wrote in message 
news:ur0fknooKHA.5508@TK2MSFTNGP02.phx.gbl...
> 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 


0
Reply Scott 1/31/2010 4:21:08 PM


1 Replies
180 Views

(page loaded in 0.189 seconds)


Reply: