c# - Run .exe file from website doesn't working -
i can't figure out why - it's not working! in similar web application project, same code - it's working well, website - nothing!
i tried use kinds of possibilities from: system.diagnostics.
processstartinfo info = new processstartinfo(exepath); info.createnowindow = true; info.useshellexecute = false; process.start(info);
and tried way using:
response.redirect(filepath); //with , without extension
and got worked other kinds of extensions (like pdf,html..) never .exe!
one more thing: it's did make small window asked if want save or open current file, file name changed filename.exe to: filename_exe (and then: program want open file question...)
thanks advance!
you can't pass through browser. should have "backdoor" execute it, , backdoor should process have neccesary permissions. solution of problem should create service can accept requests execute file, , invoke himselft. run service on server , send service requests.
Comments
Post a Comment