Sign in to follow this  
Followers 0
GEOSoft

Need input from developers

6 posts in this topic

#1 ·  Posted (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 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!"

Share this post


Link to post
Share on other sites



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 ?

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!"

Share this post


Link to post
Share on other sites

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 ?

Sorry, but...

1 OR 8 = 9 not 8

and also

0 OR 1 OR 8 = 9

Share this post


Link to post
Share on other sites

Sorry, but...

1 OR 8 = 9 not 8

and also

0 OR 1 OR 8 = 9

No

1 OR 8 = 1 OR 8

0+8 = 8

1+8 = 9

0 OR 1 OR 8 = 0 OR 1 OR 8

The 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!"

Share this post


Link to post
Share on other sites

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!"

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0