Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to use Win32::Lanman for checking connection to a fileshare on windows. The name of the file share is \\10.95.206.110\filessytem\data. Now i use the following function given NetShareCheck as follows
my $type; if(!Win32::Lanman::NetShareCheck("\\\\10.95.206.110","\filessytem\data +", \$type)) { print "Sorry, something went wrong; error: "; # get the error code print Win32::Lanman::GetLastError(); }
It gives an error that it is not correct usage. When i see fuctions usage it shows that i need to specify a drive on the server but i only have the server address and fileshare name , there is no drive involved. How can i make this function work?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Lanman Netshare
by BrowserUk (Patriarch) on Oct 01, 2012 at 07:05 UTC | |
by Anonymous Monk on Oct 01, 2012 at 07:23 UTC | |
by BrowserUk (Patriarch) on Oct 01, 2012 at 07:36 UTC | |
by Anonymous Monk on Oct 01, 2012 at 07:46 UTC | |
by Anonymous Monk on Oct 01, 2012 at 07:52 UTC | |
|
Back to
Seekers of Perl Wisdom