Run VBScript on server from javascript/php

独自空忆成欢 提交于 2019-12-05 02:47:04

问题


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?


回答1:


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"');


来源:https://stackoverflow.com/questions/18410163/run-vbscript-on-server-from-javascript-php

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!