Problem with execution external script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I've a problem with php and the execution of an external script.
The script is adutil.vbs , belonging to the IIS administration Script on 
windows 2000 server.
The vbs have to be execute with Cscript.exe.
When I execute it from Dos shell there's no problems:  for examples 
c:\Cscript adsutil.vbs

But when I try to execute it from a php web page, using exec or system,
directly or calling a C script, I've this error : Error Cscript: error 
loading...Access denied

Example of direct execution from a php web page:
<?
echo system('%SYSTEMROOT%/system327cscript.exe adsutil.vbs');
?>

Example of execution calling a C script
<?
echo system('run_adsutil.exe');   //run_adsutil.exe is a C program that run 
the vbs with system()
?>

Any Ideas? Anyone can help me?
Thanks
Bye 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux