perhaps i could have the script pause and try again if the file is locked? would i be able to use the @error with the writeline and/or open commands?

the login script would take a bit longer to finish perhaps, but i can't see it taking too long. unless a whole bunch of users login at the same time.