I have a web app which runs on a local server (XAMPP)...its on a computer (PC1) which serve as a server..other computers are connected to the same wireless network and can run the web app also from the network.
Problem now is, i have a code that executes a bat file which is stored on the server (PC1), but if PC2 runs the code...the effects will be on PC1, i want a way that if PC2 or PC3 runs the script that executes the bat file...it will execute it on PC2 or P# which runs the script.
exec('start c:/start.bat.lnk')
thiat is a shortcut to a bat file that stops a windows service "printer spooler" i want to use the script to restart windows printer spooler on any PC that its ran on...but currently it will only run on the server PC even when the script was executed from another PC