3
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by programming2010
0

i get this error...i put the code on button click and that files truly is at the address given
The system cannot find the file specified

0

you have to replace "filename" with your path.

C:\Document and Setting\My Documents\etc.

I assume you understand this goes at the very top;

using System.Diagnostics;

This goes Where you want to call it.

Process myProc = Process.Start("filename");

and this goes where you want to close it

myProc.CloseMainWindow();

Edited by finito: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.