Home » Tutorials » ASP.NET » Launch local computer exe from web page

Launch local computer exe from web page

Register custom URL Protocol using C# - Windows Application
Method Overloading in C#

Launch local computer exe from web page

Hello folks, in my last post I have explained regarding Register custom URL Protocol using C# – Windows Application. If you haven’t read it I strongly recommend to read and understand first cause we will be using URL Protocol concept in our current post. Today we will discuss regarding Launch local computer exe from web page using parameters passed from web page. Till now we have discussed regarding 4 ways to Convert JSON to DataTable in C# – asp.netScheduler for multiple instances in C#Difference between Abstraction and Encapsulation in C# and Difference between Throw and Throw ex in C#.

Step-1: Register URL protocol  in Registry by using below code snippet


In Registry we got registered our “TechoThirstyParam” registered as below screenshot. We got addition “%1” to pass parameters in exe from web page.




Step-2: Create sample exe which could capture parameters using below code snippet

In this code we will capture parameters in “args” array and we will try to iterate parameters which we will pass through our HTML page.

Step-3: Create HTML page to run our “TechoThirstyParam” URL protocol as below:

As you can see we have called our URL protocol by using different parameters named with param1 and param2 using “TechoThirstyParam: param1=test param2=test1”;




So Folks, today we have seen how we can Launch local computer exe from web page with parameters.


Hello friends, My self Dhruv Sheth, I have more than 6 years of Industrial experience as a Software Developer. In my career I got chance to work with asp.net, c#,Web API, JavaScript, JQuery, WPF, WCF , Windows Application, PostScript, vb.net, GhostScript etc. So I have decided to share my knowledge with everyone and finally I have come up with TechnoThirsty.

One thought on “Launch local computer exe from web page

  1. Tracy Woo says:

    Looking for this kind of code thanks for sharing.

Leave a Reply

Your email address will not be published. Required fields are marked *


Time limit is exhausted. Please reload CAPTCHA.

The content is copyrighted to technothirsty.com and may not be reproduced on other websites without permission from the owner.You may contact us using the information below.