I have tried to read https://www.daniweb.com/programming/web-development/threads/386380/cannot-run-exe-files-in-asp-net-application but still lost in trying to achieve something. I installed the latest .net framework, and IIS on the latest updated windows 11. I wish to achieve the following:
Have a webpage with a button, when pressed, it will launch a webpage that runs a server side exe (eg, notepad.exe or ribbons.scr), while at the same time run the same exe on the local client pc.
For my attached source files, i dont know why the index.cshtml doesnt show a button. Also disappointingly the notepad.exe did not run even when i set it to have security permissions so let everyone have all rights. im a little confused why there were 2 web.config files, and the IIS interface didnt seem to match the web.config settings, and also i dont understand why the visual studio code will launch the site with a certain port number, while your previous discussion 13 years ago suggested to use the session state to run at a different port.
Thank you for reading!
Recommended Answers
Jump to Postwhile at the same time run the same exe on the local client pc.
Not possible.
Jump to PostNo, Javascript cannot run/start executables on the client machine.
Jump to Post
- User wants to do X.
Sometime later...
…My boss just asked me to create a prototype as proof of concept. There is no specific language/tool I must use
Jump to PostNo, Javascript cannot run/start executables on the client machine.
Technically correct but there are ways around it. For example, save a file in a special folder on the target computer, which has a folder watch on that folder. The watching task could then trigger a local task.
Jump to PostWhen I run the command "python server.py" on the server pc, it held for a second, then released back to the command prompt.
So did it even give you
print("Waiting for a connection...")
?Consider making your server main like this.
if __name__ == …
All 19 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.