I am connecting a windows system to a windows file share with help of net use to scan the file contents in share. The problem is that when the connection is lost than my system captures in its cache the file share and tries to scan it, but fails as it cannot read these files when connection is lost
Is there any module which can help in checking that the system is connected to the file share such that it breaks execution on losing connection? I want to exit execution as soon as connection is lost. I tried Win32::Lanman but could not figure out its use. Please help..