4

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?

0

1 Answer 1

5

Found this gem: http://technet.microsoft.com/en-us/library/ee156587.aspx

By that, you should try the similar in PHP:

exec('wscript "C:/path/to/script.vbs"');
Sign up to request clarification or add additional context in comments.

2 Comments

May I note that it DOES NOT have to be the whole path, path can be relative :-)
I wanted to write C:/ to indicate that this only works on Windows, but you should have known that already. :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.