Hi all, I have been given roughly 150 shares that are located on different servers that must be totally removed.... 1) The share must be removed from the system 2) I have to get the size of the folder/Share 3) I have to delete the folder and all its contents
I am using Win32::Lanman to get the details of the share and to remove the share, but I am unsure how to go about getting the size of the folder (Have tried -s with no luck) and how to remove the folder from the remote machine. I am using Win32::Lanman to get the physical address of the folder on the remote machine. Can anyone point me in the right direction. Another problem I have found is that I cant get LanMan to report if the share exists, so I am using the code: if (-d $line) { ..... } Where $line would equal \\\\server\\share, but this appears only to work when I hard code in the share details, instead of using a variable. I have checked and $line is successfully being set. Your input is very much appreciated. -------------------------------- Neil Barlow Network Analyst Global Infrastructure SRS Ireland Computing Intel Ireland Phone: +353-1-6066889 Or #6889 iNet: 8-606-6889 Loc: IR5-1-C4 Email: [EMAIL PROTECTED] -------------------------------- _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs