foster74 Posted January 31, 2008 Share Posted January 31, 2008 I have a file that is being wrote to and read from constantly by many instances of a single script. This is causing it to error out every so often, I have look around a ton and can't find anything. Is there anyway around this? And if not, I was planning on making a script that uses TCP that will allow all the scripts access to the file one at a time. Would this be my best choice? There is no way I can work around using a single file, so any input is much appreciated, thanks in advance. -Casey Link to comment Share on other sites More sharing options...
sublimnl Posted January 31, 2008 Share Posted January 31, 2008 Here you go... CODEDo $errfile = FileOpen($path,1) Sleep(500) Until $errfile <> -1 FileWriteLine($errfile,@ComputerName & " -> " & $NewOU & ": Move Result: " & $moveresult) FileWriteLine($errfile,@ComputerName & " -> " & $newname & ": Renm Result: " & $renresult) FileClose($errfile) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now