Thread auf Windowsfreigabe c$ zugreifen
(5 answers)
Opened by pib at 2008-10-28 14:28
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) |