LNJ has asked for the wisdom of the Perl Monks concerning the following question:
my $destDIR = 'Y:/'; opendir( NTDIR, $destDIR ) || die "Unable to access NT upload directory. $!"; closedir(NTDIR);
I'm using the above code to check the access to a network drive. When I run the above code using a windows scheduler I'm randomly getting an error message "Invalid argument at.."
FYI, most of the time the code works and I was not able to find any issue accessing the network drive
Advise if there are any issue or disadvantage in the above code...thanks in advance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Invalid argument
by NetWallah (Canon) on Sep 08, 2011 at 04:50 UTC | |
|
Re: Invalid argument
by davido (Cardinal) on Sep 08, 2011 at 04:48 UTC |