Run serverside application with script

brian8544

Gold Supporter
Senior User
347
2014
63
Location
The Netherlands
Good evening EmuCoach community,

Does anyone know if it's possible to run a server-side application with Windows through clicking a button on a website, perhaps anyone knows the technical name for it? I've checked AJAX but it looks like that only serves web-like stuff (php scripts as example).

What I'm trying to say, or like explain is:

<button type="button">Start notepad</button> by clicking this button it should start notepad.exe on the server machine serving the webpage.


Any input, information regarding this is greatly appreciated!
 

brian8544

Gold Supporter
Senior User
347
2014
63
Location
The Netherlands
Found out how to do it, thought it had to do something with CGI, but after looking into some forums, i found out how to do it.

This script will run Notepad.exe on a Windows 11 machine running XAMPP Apache2 webservice. I don't know if it's safe, but if anyone is curious on how to:

<?php echo "<h2>Launching app in Windows</h2>"; echo "Trying to execute Notepad...<br>"; shell_exec('notepad.exe'); ?>
 
Top