PERL: chdir of mapnetwork

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
vietboy505
Forum Commoner
Posts: 53
Joined: Wed Feb 22, 2006 9:30 am

PERL: chdir of mapnetwork

Post 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.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post 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.
Post Reply