recently. i am testing Win32-ShutDown
the code is simple as below and make it a file named shutdown.pl
(shutdown.pl)------------------------------------------
use Win32::ShutDown;
#Win32::ShutDown::ForceShutDown(); # Turns off the PC, no matter what :-)
exit;
while the code is working only in dos window. while doing nothing when i call it from a webpage.
then make a batch file called shudwonbat.bat
something like below code
(shudwonbat.bat)---------------------
perl.exe C:/shutdown.pl
Then i run again from the web by below code--------------------
system ("i:/shutdown.bat");
#print " shutdown is OK now\n";
exit;
but nothing is happened again.
i wonder weather i am using the wrong way to call a batch file?
Any help would be greatly appreciated
austin
the code is simple as below and make it a file named shutdown.pl
(shutdown.pl)------------------------------------------
use Win32::ShutDown;
#Win32::ShutDown::ForceShutDown(); # Turns off the PC, no matter what :-)
exit;
while the code is working only in dos window. while doing nothing when i call it from a webpage.
then make a batch file called shudwonbat.bat
something like below code
(shudwonbat.bat)---------------------
perl.exe C:/shutdown.pl
Then i run again from the web by below code--------------------
system ("i:/shutdown.bat");
#print " shutdown is OK now\n";
exit;
but nothing is happened again.
i wonder weather i am using the wrong way to call a batch file?
Any help would be greatly appreciated
austin