GEOSoft Posted May 26, 2006 Share Posted May 26, 2006 (edited) I think this has been in the help file since the first Beta of AutoIt3 (Jons fault ). And since I'm doing a lot of updating on the help file right now I would like to straighten this out ASAP. In FileMove()>>Flag [optional]this flag determines whether to overwrite files if they already exist: Can be a combination of the following: 0 = (default) do not overwrite existing files 1 = overwrite existing files 8 = Create destination directory structure if it doesn't exist (See Remarks). Edit: Ignore this, I finally realized that in some scenarios this page is correct. Sorry guys. The way I see it, these flags can not be combined. Reasoning; Obviously you can't combine 0 and 1 You can't combine 0 and 8 OR 1 and 8 because if the directory structure does not exist then either does the destination file, so overwrite flags will not apply. It shouldn't throw an error but the way I it won't work either. Correct me if I'm wrong. Question; Should I remove the Can be a combination of the following: and the associated remarks or just ignore it. I vote for removal but obviously it's not a major issue or someone would have reported it. Edited May 27, 2006 by GEOSoft George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
w0uter Posted May 26, 2006 Share Posted May 26, 2006 (edited) AFAIK. 0 OR 1 = 1 0 OR 8 = 8 1 OR 8 = 8 0 OR 1 OR 8 = 8 so it can be combined maybe a rephraze ? Edited May 26, 2006 by w0uter My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
GEOSoft Posted May 26, 2006 Author Share Posted May 26, 2006 AFAIK.0 OR 1 = 10 OR 8 = 81 OR 8 = 80 OR 1 OR 8 = 8so it can be combined maybe a rephraze ?Ah ha, but if you read the remarks in FileMove() you'll notice that the example is 9 (8+1) and I'd sure like to know how that's going to work. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
GioVit Posted May 26, 2006 Share Posted May 26, 2006 AFAIK.0 OR 1 = 10 OR 8 = 81 OR 8 = 80 OR 1 OR 8 = 8so it can be combined maybe a rephraze ?Sorry, but...1 OR 8 = 9 not 8and also0 OR 1 OR 8 = 9 Link to comment Share on other sites More sharing options...
GEOSoft Posted May 26, 2006 Author Share Posted May 26, 2006 Sorry, but...1 OR 8 = 9 not 8and also0 OR 1 OR 8 = 9No1 OR 8 = 1 OR 80+8 = 81+8 = 90 OR 1 OR 8 = 0 OR 1 OR 8The page states that they can be combined (AKA summed). George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
GEOSoft Posted May 27, 2006 Author Share Posted May 27, 2006 You can ignore this whole thread. Poor logic yesterday because actually in certain situations 9 is valid. So the file remains as it is. Scenario You are working in a loop and Moving files to another folder. If the file already exists on the destination path then it's over-written If only part of the destination path exists then the rest of the path is created and the file moved there. It's an If...ElseIf situation. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" 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