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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

VBS mapping drive problem

  • 17-06-2005 12:25pm
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 Posts: 3,779 ✭✭✭Ping Chow Chi


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


Advertisement