Good day, I have a .bat script I'm invoking thru a cgi script (PERL)
with (NT/IIS) on a internal network. The .bat script is having
problems accessing network drives, it keeps saying "Invalid drive
specification". I have tried to access the drives like this:
\\servername\share\...... and like this: G:\.....
When I change the cgi script to a regular perl script and invoke it
from the command line it works fine...
When I change the path to the local drive (C:) everything works well.
Does anybody have any ideas of how to get around this and still
keeping the .bat file?
Below is an example of how my script/bat file is setup:
####Script
#!/usr/bin/perl -w
use strict;
use CGI;
my $q = new CGI();
$|=1;
print $q->header('text/html');
print "Start<br>";
my $path = 'batfile.bat';
my $results = `$path`;
print "$results<br>";
print "done<br>\n";
#batfile example line
xcopy "C:\files\*.*" "\\servername\share\files" /E /y /I
Thanks, Jonas