freelanceprogrammers.org Forum Index » Perl

Urgent Require


View user's profile Post To page top
venkat_samuel Posted: Wed Mar 02, 2005 12:16 am


Joined: 25 Feb 2005

Posts: 2
Urgent Require
Hi all,
Through perl program
How can i map (`Map the Network Drive`) and assign a drive letter to
that connection???

Thanks
SAM
Reply with quote
Send private message
View user's profile Post To page top
mikesouthern Posted: Wed Mar 02, 2005 6:08 am


Joined: 16 Jun 2004

Posts: 9
Urgent Require
Quick and dirty:

On a PC

$status = system "net use map DRIVELETTER \\IPADDRESS_OR_HOST\SHARE
/User:USERNAME PASSWORD";

(See DOS documentation on NET command for additional syntax)



On OS/X Mac

$status = system
"smb://workgroup;username:password@IPADDRESS_OR_HOST/SHARE";


>
>
>
> Hi all,
> Through perl program
> How can i map (`Map the Network Drive`) and assign a drive letter to
> that connection???
>
> Thanks
> SAM
>
>
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help