1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Hi Guest, welcome to the TES Community!

    Connect with like-minded education professionals and have your say on the issues that matter to you.

    Don't forget to look at the how to guide.

    Dismiss Notice

VB Script running too fast?

Discussion in 'Computing and ICT' started by School Boy Error, Apr 12, 2012.

  1. School Boy Error

    School Boy Error Occasional commenter

    I have written a
    logon script using Visual Basic Studio Express 10 and it simply installs
    printers and adds network shared drives. It does look at the users Active
    Directory group and add drives / printers. But on occasion it doesn't install
    the drives or printers.

    I've placed a copy
    of the logon exe on the desktop and if the user finds they are missing drives
    etc they click on this and add them again. This has <u>never</u> failed so I'm curious as to why exactly the same exe
    would fail at logon? Is it something to do with speed of the computer or a time
    out somewhere? A frustrating problem!
  2. We had no end of problems with our VB logon script. Over the holiday we've scrapped it and now everything is handled through group policy. Sorry I can't be more helpful.
  3. School Boy Error

    School Boy Error Occasional commenter

    Someone suggested using a timer to postpone the running so whatever process it was clashing with had finished. I may give that a go and see what happens.
  4. T34

    T34 Lead commenter

    A timer - run the script every two seconds or so.
    After every run, check if it has worked.
    If it has worked, disable the timer.

Share This Page