Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

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..

Replies are listed 'Best First'.
Re: file share
by BrowserUk (Patriarch) on Sep 28, 2012 at 14:27 UTC
    but fails as it cannot read these files when connection is lost

    How do you know when it has failed?


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    RIP Neil Armstrong