yf76 Posted July 28, 2009 Posted July 28, 2009 Hello, I've got a problem with DirCopy function : When I do a DirCopy(C:\Dir1,C:\Dir2,1), if C:\Dir2 already contains a file with the same name of one in C:\Dir1, the return code is always a faillure. If I do the copy with Windows, no problem, but just some messages asking for overwrite. Note : C:\Dir1 en C:\Dir2 contains subdirectories. OS = Windows Vista SP2 Autoit : v3.2.12.1 (same problem on v3.3.0.0, and I dont want to upgrade now cause I'm using a lot of RegRead of Binaryvalues, and I don't want to rewrite / retest all my scripts for the moment >_< ) Didn't test with beta version.
GEOSoft Posted July 28, 2009 Posted July 28, 2009 Hello,I've got a problem with DirCopy function :When I do a DirCopy(C:\Dir1,C:\Dir2,1), if C:\Dir2 already contains a file with the same name of one in C:\Dir1, the return code is always a faillure. If I do the copy with Windows, no problem, but just some messages asking for overwrite.Note : C:\Dir1 en C:\Dir2 contains subdirectories.OS = Windows Vista SP2Autoit : v3.2.12.1 (same problem on v3.3.0.0, and I dont want to upgrade now cause I'm using a lot of RegRead of Binaryvalues, and I don't want to rewrite / retest all my scripts for the moment >_< ) Didn't test with beta version.That's because you didn't read the help file properly. You need to set the overwrite flag to 1. 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!"
yf76 Posted July 29, 2009 Author Posted July 29, 2009 That's because you didn't read the help file properly. You need to set the overwrite flag to 1.Nop, I have already set overwrite flag to 1.But I'd just fount where was the problem : in Dir1, a hidden directory called RECYCLER vas present. Don't ask me why, but it was this directory that returnd an error.Thanks for help.Topic colsed.
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