Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

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