Using IIS 5 with NT4 and W2K IE 5.x clients I've tried opening the file on a remote machine via CGI a couple different ways but almost always seem to have issues... My latest solution has faired no better, that being an IIS virtual Directory that points to the UNC path of an object.. Directory browsing of the virtual dir works fine, and I can also view the file once in the virtual dir, but not via perl with the directories that I think I should be querying... i.e. http://iisserver/data/system-name/state.sah where: -data is a directory on the IIS Server -system-name is a virtual directory on the IIS Server pointing to a UNC resource. -state.sah is a plain-text file in the UNC resource. the error I get using use CGI::Carp qw(fatalsToBrowser) is: data/system-name/state.sah --- No such file or directory at d:\Shared\www\cgi-bin\seti.pl line 80. This would tend to make sense because the file is not located on the IIS Server, but I guess my question is really how do I get perl to understand that data\system-name is a virtual directory.. Code: #snip foreach $system (sort {lc($a) cmp lc($b)} keys %Systems) { foreach $file (@files) { $file_string = "data/$system/$file"; print "$file_string\n<BR>"; if (!open (FILE,$file_string)) { die "$file_string --- $!"; } else { print "Woohoo! \n"; foreach $line (<FILE>) { #do something } } } } #snip _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com _______________________________________________ Perl-Win32-Web mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web
