Run .exe from WebForm

  • Thread starter Thread starter mg
  • Start date Start date
M

mg

How can I run an .exe (located at the server) from within
a WebForm? For example, run "word.exe mydoc.txt"
 
I ran

private void Page_Load(object sender, System.EventArgs e)
{
System.Diagnostics.Process.Start("cmd.exe");
}

and

private void Page_Load(object sender, System.EventArgs e)
{
System.Diagnostics.Process.Start("c:\\Program
Files\\Microsoft Office\\Office\\WinWord.exe");
}

but nothing happened.

???
 
What did you want to happen? The Web service doesn't have a way to show you
the desktop so there's nothing to see.

I ran

private void Page_Load(object sender, System.EventArgs e)
{
System.Diagnostics.Process.Start("cmd.exe");
}

and

private void Page_Load(object sender, System.EventArgs e)
{
System.Diagnostics.Process.Start("c:\\Program
Files\\Microsoft Office\\Office\\WinWord.exe");
}

but nothing happened.

???
 
If possible, I'd like to open a program like notepad
programatically ... Ideally on the client (where the
WebForm is running in a browser), or at the server (where
IIS is running) ?
 
Back
Top