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

pib
 2008-10-29 11:33
#115813 #115813
User since
2008-10-28
5 Artikel
BenutzerIn
[Homepage] [default_avatar]
ah, ich habs. Statt der Variablen $RemoteShare:

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
my $LocalName = "Y:";

my $RemoteShare = {
                 'Scope' => RESOURCE_CONNECTED,
                 'Type'=> RESOURCETYPE_DISK,
                 'DisplayType' => RESOURCEDISPLAYTYPE_GENERIC,
                 'Usage' => RESOURCEUSAGE_CONNECTABLE,
                 'LocalName' => $LocalName,
                 'RemoteName' => $RemoteName,
                };

Win32::NetResource::CancelConnection($RemoteShare,$Connection,$Force)


muß ich die Variable $LocalName einsetzen.

Code (perl): (dl )
Win32::NetResource::CancelConnection($LocalName,$Connection,$Force)


View full thread auf Windowsfreigabe c$ zugreifen