Windows 2003 Server problem

2004-06-18 Thread Craig Norris








I have a snippet of code I use in a Perlscript Im
using with IIS on a Windows NT Server that seems to work fine to see if some
network shares that have been mapped to the F and G drives exist. However,
after migrating the code to IIS on Windows 2003 Server, it doesnt seem
to work. Has something changed between versions? Any help would be
VERY appreciated.



Thanks!

Craig Norris

MetaMAP, Inc.



$fexst = 0;

$gexst = 0;

if (opendir(DIR, 'f:\\frankortho\\')) {

$fexst = 1;

closedir DIR;

}

if (opendir(DIR, 'g:\\images\\')) {

$gexst = 1;

closedir DIR;

}










___
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: Windows 2003 Server problem

2004-06-18 Thread henry isham
Server 2003 and IIS security have changed dramatically. You need to configure your IIS 
to run scripts. Further, you may need to do the Perl equivalent of RunAs (maybe WMI 
impersonate) from your script using a user that has access to the F:\ drive.
 
-H.

-Original Message- 
From: [EMAIL PROTECTED] on behalf of Craig Norris 
Sent: Fri 6/18/2004 9:10 AM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: Windows 2003 Server problem



I have a snippet of code I use in a Perlscript Im using with IIS on a Windows NT 
Server that seems to work fine to see if some network shares that have been mapped to 
the F and G drives exist.  However, after migrating the code to IIS on Windows 2003 
Server, it doesnt seem to work.  Has something changed between versions?  Any help 
would be VERY appreciated.

 

Thanks!

Craig Norris

MetaMAP, Inc.

 

$fexst = 0;

$gexst = 0;

if (opendir(DIR, 'f:\\frankortho\\')) {

 $fexst = 1;

 closedir DIR;

}

if (opendir(DIR, 'g:\\images\\')) {

 $gexst = 1;

 closedir DIR;

}

 

 


___
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs