The only reasons I can think of why that might not work are:
When you try it from the Explorer, you've previously done a Tools->Map network drive, but you haven't done the equivalent before running the script.
When you run the script, it is running under a different account -- say a webserver id -- that doesn't have permission to access the network.
What output do you see if you add the following to the top of your script:
warn `net share`; warn `dir \\\\Server\\e\$`; ...
In reply to Re: Cannot read files from folder on another windows server
by BrowserUk
in thread Cannot read files from folder on another windows server
by mukkollu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |