I am trying to write code on Windows server A to read files from Windows server B. Here is the code piece.
$logdir = "\\\\Server\\e\$\\log"; opendir($fd, $logdir) or die "Cannot open directory: $!"; @AllFiles = readdir($fd); print "$_\n" for @AllFiles;
This code neither throws error nor prints files. Files do exist in the log folder. I was able to view the files from windows explorer and command prompt from server A.
In reply to Cannot read files from folder on another windows server by mukkollu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |