in reply to Refreshing the Windows Registry

I'm just taking a shot in the dark here, but .... have you considered writing a script to call the script in question twice? My thinking is - if you have to run the script twice - and a 'sleep' doesn't work - maybe if you run the script twice from another script (or even a batch script), it *may* work. HTH

Replies are listed 'Best First'.
Re: Re: Refreshing the Windows Registry
by Anonymous Monk on Jan 15, 2004 at 15:53 UTC
    I did consider that but I'm trying to keep everything contained in one script (easier to maintain that way)
      You could just have the script execute itself again with an extra argument if it wasn't run with that argument in the first place (thereby preventing an endless loop). This will allow you to keep it all in one script for ease of maintenance.

      - - Arden.

        Hmmm...I've never done that. What does the code look like?