Page 1 of 1

PERL: chdir of mapnetwork

Posted: Fri Feb 24, 2006 3:18 pm
by vietboy505

Code: Select all

$server="\\\\netserver.vietboy505.com";
print("\n Current directory: " . cwd() . "\n\n");
print("Server is: " . $server . "\n\n");
chdir($server);
print("\n Current directory 2: " . cwd() . "\n\n\n");
How come I can't change the directory the server, the server is is map in the background by using

NET USE \\netserver.vietboy505.com from command prompt.

the output is:

Code: Select all

Current directory: C:/script

Server is: \\netserver.vietboy505.com


Current directory 2: C:/script
Any one know why?

Where the $server is a real server got map.

Posted: Sat Feb 25, 2006 8:16 pm
by Ambush Commander
That's not how filesystems work. You'd have to ssh in to the server or use cURL functions to grab pages from the server.