asp.net mvc - How to open an exe on local pc from a link on a web page hosted on a server in C#? -


i got web site link called 'open trim' should open application on local pc called trim.exe. when run website on local pc works fine. click link 'open trim' , trim.exe application opens. but, when upload same code windows 2003 server link doesn't anything.

i have seen in github.com website open github desktop application clicking link 'clone in desktop'. trying achieve similar feature website , trim.exe.

enter image description here

i using following code.

        var p = new process             {                startinfo = {                         useshellexecute = false,                         redirectstandardoutput = true,                         filename = path + opentrimbatchfilename                     }             };         p.start();         p.standardoutput.readtoend();         p.startinfo.createnowindow = true;         p.waitforexit(); 

reference: how run exe file in c#

the code mentioned make exe run on server machine. that's why working on local pc. client machine have download exe have run on machine. instead of code, have give link users can download exe , run it.


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -