in reply to Mapping a network drive

Have you tried Win32::FileOp's (alt.) Map family of functions?

use Win32::FileOp; Map P => '\\\\perl\\monks', { persistent => 1 };

    --k.


Replies are listed 'Best First'.
Re: Re: Mapping a network drive
by 5dxuser (Initiate) on Aug 01, 2002 at 13:22 UTC
    I wrote a quick scrip that basically is a copy and past of what you submitted:
    use Win32::FileOp; Map R => '\\\\Relmrx\\RELMRX', { persistent => 1 };
    When I run this script I get the following:
    Can't locate Win32/FileOp.pm in @INC (@INC contains: E:/Perl/lib E:/Perl/site/lib .) at mapdrive.pl line 4.
    BEGIN failed--compilation aborted at mapdrive.pl line 4.

    Where can I get the Win32 library?

    5DXuser