Try the Roth Consulting Win32::AdminMisc Module, there's a whole shedload of
W32 goodies

http://www.roth.net/perl/adminmisc

Don't know if this includes a "Map drive" function, but I have used some of
these with great success

Rod 

> -----Original Message-----
> From: Chris Garringer [mailto:[EMAIL PROTECTED]]
> Sent: 26 September 2001 17:10
> To: [EMAIL PROTECTED]
> Subject: Windows drive mapping in perl
> 
> 
> Recently I had a problem where I had to loop through a set of 
> shares (actually NetWare servers and volumes), map a drive, 
> execute a program (that requires a drive mapping, UNC will 
> not work), delete the drive mapping.  I could not find a way 
> to map/unmap a drive in Perl.  I ended up calling a batch 
> file and passing server and volume to it.  The batchfile then 
> mapped the drive, called the program , and deleted the drive. 
>  I had to use the same basic system for another purpose and 
> really would like to eliminate the batch file.  Under the 
> current setup, the success/failure of the program is not 
> available, nor any other debugging info.  Is there a call to 
> map a drive for Windows in Perl ?  I am using ActivePerl v5.
>  
> Chris D. Garringer
> LAN/WAN Manager
> Master Certified Netware Engineer
> Microsoft Certified Systems Engineer
> Certified Solaris Administrator
> Red Hat Certified Engineer
> [EMAIL PROTECTED] 
> fax 713-896-5266
> 
> 
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to