I need help running a .bat file on my Windows IIS 6.0 server from a perl file through the server. The batch file creates a windows installer. The code is painfully simple and I think it may be a permissions problem, or maybe it needs to be done a different way. I don't mind it being done in PHP either, but you'll have to install php yourself on the server :)
#!c:/Perl/bin/[login to view URL]
use CGI:
my $query = new CGI;
$toolid = $query->param('toolid');
if(!$toolid){
$toolid=2;
}
print "Content-type: text/html\n\n";
print "Created Installer: ";
my $v = system('cmd [login to view URL] $toolid');
print $v;
For some reason the perl file will not create the installer I want it to, however, if I double click the file via remote desktop, the perl file runs fine and creates the required installer
There are some ancillary requirements listed below
## Deliverables
1) Complete program running on my Windows server
2) The script must execute the required batch file
3) The script must move the file to a certain path
4) The script must lock any other requests until the current batch file has been completed (only one batch file at a time)
5) The script file must return the url of the installer, something like this would be fine [login to view URL] number/[login to view URL]
6) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
Windows IIS server 6.0 Most recent Perl build