Thread auf Windowsfreigabe c$ zugreifen (5 answers)
Opened by pib at 2008-10-28 14:28

pib
 2008-10-28 16:22
#115796 #115796
User since
2008-10-28
5 Artikel
BenutzerIn
[Homepage] [default_avatar]
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/perl -w

use strict;
use warnings;
use File::Copy;
use Win32::NetResource;

my $RemoteShare = {
                 'Type'=> RESOURCETYPE_DISK,
                 'Usage' => RESOURCEUSAGE_CONNECTABLE,
                 'LocalName' => "Y:",
                 'RemoteName' => "\\servername\c$"                 
                };
                
 my $UserName = "";
 my $Password = "";
 my $Connection = 1;
 my $ErrorCode = "";
 
Win32::NetResource::AddConnection($RemoteShare,$Password,$UserName,$Connection)
  or print "unable to add network\n";

Win32::NetResource::GetError( $ErrorCode );
print "Error code is $ErrorCode";



Als Fehlercode bekomme ich: 1203. Laut mircosoft bedeutet das:

"The network path was either typed incorrectly, does not exist, or the network provider is not currently available. Please try retyping the path or contact your network administrator."

mir gehen die Ideen aus,...

View full thread auf Windowsfreigabe c$ zugreifen