Jump to content

Archived

This topic is now archived and is closed to further replies.

kochv

execute a VB script in PHP

Recommended Posts

Hello

At first excuse me if my english isn't correct because i'm from switzerland ;)

now my problem:

i have an web application where you can control all Services(WMI) from different servers.
now i have a VB-Script which gets Server names from a database and check all Services from the Servers in the DB.
this works all fine but if i want to execute this .vbs-file in the PHP site it doesn't work.
I tried with the command "exec ('blabla.vbs');"
if i execute a .cmd file it works fine but if it's a .vbs-file it doesn't work...

i have set the Apache properties locally to 'allow this server to interact with desktop' but nothing has changed...

i have an apache server(newest xampp version) and all my files are LOCAL in the htdocs.
can someone help my?

greets

Share this post


Link to post
Share on other sites
have you tried the include() function

[code]
<?
include("blabla.vbs");
?>
[/code]

or you may have to echo your script

[code]

<?
echo "your vbscript here";
?>
[/code]

Share this post


Link to post
Share on other sites
hm i tried both but it doesn't work :(
if i would do it in asp i wouldn't have this problem, but i like php more and i can't ASP^^

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.