in reply to Re: Using Win32 network shares
in thread Using Win32 network shares

Yea, that's certainly a much more usable function. The parameters and form make sense on a cold reading, and a short description fully describes the options.

I'll have to look into the other things in his suite.

But, I specifically don't want to map a drive letter. That would peturb the user's system, it would have to find the letter that wasn't being used already (his function can use "next available" but doesn't return what it chose), etc.

Replies are listed 'Best First'.
Re: Re: Re: Using Win32 network shares
by Marza (Vicar) on Apr 06, 2002 at 01:07 UTC

    "(his function can use "next available" but doesn't return what it chose), etc."

    Yes it does. From his doc

    $drive = Map $share;

    Don't forget that NetResource can do a deviceless connection. You would need to use the UNC to get to the share. That was explained on p62. where it pointed out

    my %NetResource = ( LocalName => "R:", RemoteName => "\\\\Public\\Depot" );

    Remember it said if LocalName was left blank.....