deef99 Posted October 12, 2011 Share Posted October 12, 2011 We have created an AutoIT app that several PCs run on their desktop. When a particular parameter gets met, the app will write to a text file. All that is working well in a single PC environment. My question is this...all the PCs are writing to the SAME file name across the board. Is this an issue in any way? Are there implications in multiple writes to the same file name [which could happen at same time? I have the code Opening the file, write and close within a few lines of each other. Would it be better that each PC write to a unique filename? Looking for the best idea to avoid problems. Many thanks! Link to comment Share on other sites More sharing options...
jaberwacky Posted October 13, 2011 Share Posted October 13, 2011 I think one method could be when one script has a file open it sets a flag indicating that the file is locked. If another script wants to write to that file while it is locked then it has to wait in a line. But then you run into issues with one user changing a particular line and then another user coming along and changing the same line. WHich change should be accepted? This is what SVN takes care of. My SVN client of choice is Tortoise. Check it out. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
JohnOne Posted October 13, 2011 Share Posted October 13, 2011 Have a look at AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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