Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

VBS mapping drive problem

  • 17-06-2005 01: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