5dxuser has asked for the wisdom of the Perl Monks concerning the following question:

Hello, I am trying to map a network drive on my NT station. I've tried using "USE NET" and the win32::netresource with NO success. When I use the Win32::NetResource, PERL even complains about the AddConnection function (it can't find it). Please help! 5dxuser

Replies are listed 'Best First'.
Re: Mapping a network drive
by Kanji (Parson) on Jul 30, 2002 at 21:19 UTC

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

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

        --k.


      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
Re: Mapping a network drive
by mumbles (Friar) on Jul 31, 2002 at 15:01 UTC
    try 'net use /?' from the command line for help on using this command
      When I run "net use /?" I get: The name specified is not recognized as an internal or external command, operable program or batch file. So... obviously I need to install something. I'm running Win NT. So what do I need to install and where can I get it? 5DXuser
        'net' command is usually located in /winnt/ system32.
        Try searching for 'net.exe'.
        Usually in the path.