I have a Single Page Application written in JavaScript and PHP, I am trying to run an external .vbs file on my server?
I have tried using the php COM class as well as exec() to no avail. Has anyone successfully achieved this? Is it even possible?
I have a Single Page Application written in JavaScript and PHP, I am trying to run an external .vbs file on my server?
I have tried using the php COM class as well as exec() to no avail. Has anyone successfully achieved this? Is it even possible?
Share Improve this question asked Aug 23, 2013 at 19:08 A.O.A.O. 3,7636 gold badges32 silver badges49 bronze badges 01 Answer
Reset to default 5Found this gem: http://technet.microsoft./en-us/library/ee156587.aspx
By that, you should try the similar in PHP:
exec('wscript "C:/path/to/script.vbs"');