This is a discussion on How to run a exe from a web application? within the C# Programming forums, part of the Software Development category; Hi All, This is an intranet application, so all execute permissions are granted. I need to run a 3rd party ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi All, This is an intranet application, so all execute permissions are granted. I need to run a 3rd party application from a page on the site that I'm developing. I'd like to be able to run either locally on the client or on the server. how do I do this in C#? thnx... |
| Sponsored Links |
| |||
| Hi Deeban, This should point you in the right direction: using System.Diagnostics; ... string sProcess = @"C:\windows\system32\notepad.exe"; Process p = new Process(); p.StartInfo.FileName = sProcess; p.Start(); Regards, M.Sundaram |
| |||
| hi sundaram, i tried your code, its works fine, but i tried to open my own exe file created through my windows setup, it causes exception:"The specified executable is not a valid Win32 application." any idea? Thx Manivannan.s |
| |||
| Quote:
Its working fine, i gave path to shortcut.. so its fails previously.. now its working. Process p = new Process(); string sProcess = @"C:\\Program Files\\LSI-Setup\\Application.exe"; p.StartInfo.FileName = sProcess; p.StartInfo.UseShellExecute = false; p.StartInfo.CreateNoWindow = false; p.StartInfo.WindowStyle = ProcessWindowStyle.Maximized; p.Start(); Thx a lot |
| |||
| Hi buddies, Here is sample code for how to run an exe from JavaScript... Code: <html>
<title>Run an EXE using JavaScript by Vinothnat</title>
<body>
<h1 style="color:Maroon">Run an EXE using JavaScript by Vinothnat</h1>
<br /><br />
<input onclick=OpenApplication() type=button value="ClickMe" name=button1>
<script language="javascript" type="text/javascript">
function OpenApplication()
{
alert("IE");
var shell=new ActiveXObject("WScript.shell");
shell.run("C://Cleanup.exe",1,true);
}
</script>
</body>
</html> If anybody could pls.... ![]()
__________________ S.VinothkumaR Behind me is infinite power, Before me is Endless Possibility, Around me is Boundless Opportunity, Why should I fear! |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Chat Application | Manikandan.S | ASP and ASP.NET Programming | 4 | 03-24-2008 04:50 AM |
| Application has failed to start because the application configuration is incorrect | kingmaker | ASP and ASP.NET Programming | 5 | 01-03-2008 03:18 AM |
| Mobile Application | vigneshgets | Software Testing | 1 | 11-05-2007 11:52 PM |
| debugging an Asp.net web application | simplesabita | Software Testing | 1 | 08-18-2007 12:55 AM |
| difference between client server application testing & web application testing | vigneshgets | Software Testing | 1 | 07-27-2007 05:28 AM |