Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

VBS mapping drive problem

Options
  • 17-06-2005 1:25pm
    #1
    Registered Users Posts: 3,779 ✭✭✭


    Hi there,

    I am currently writting a script to replace a file on a list of machines at work

    Now the mapNetworkDrive runs a treat, until it comes across a computer on the list that is not switch on / connected to the network etc. Then it just falls over.

    Is there a way to skip the error - maybe writing the errors to file, rather than a popup and bombing out in VBS.

    I know in VB6 there is an onError function - but I have found nothing like this on my online searches :(


Comments

  • Closed Accounts Posts: 25 maxcherry


    But could you not do something like this:

    FOR
    On Error Resume Next

    mapNetworkDrive

    If Err.number <> 0 Then

    Err.number =0

    Write error to log
    EndIf
    LOOP


  • Registered Users Posts: 3,779 ✭✭✭Ping Chow Chi


    cheers - you dont want to know how long I was looking for this ;)


Advertisement