Proph Posted May 27, 2012 Share Posted May 27, 2012 OK... this is a very weird error. Or it's some sort of limitation I have never encountered before. I'm using Windows 7 x64. I was having trouble using FileCopy in an x86 autoit exe. But I noticed it worked in an x64 autoit exe. In my x86 Autoit exe it seems that many files will fail to copy. At least from the directories I am trying to copy... which reside in the Windows directory. But when I launch the same script fom my x64 Autoit exe they all copy just fine. Maybe it is just me? Or is it a limitation? Is there a workaround without having to compile an x86 and x64 version of my script? Here is a quick sample I put together using _FileListToArray: #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Compile_Both=y #AutoIt3Wrapper_UseX64=y #AutoIt3Wrapper_Res_requestedExecutionLevel=asInvoker #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <File.au3> #include <Array.au3> $DirList = @WindowsDir & '\System32\Drivers' MsgBox(0,'Get File List From...',@WindowsDir & '\System32\Drivers') $Drivers = _FileListToArray($DirList, '*.*') _ArrayDisplay($Drivers) Please test this on your own systems by compileing both an x86 and a x64 exe. Let me know if you get any differences. Thanks! Siginet Link to comment Share on other sites More sharing options...
armoros Posted May 28, 2012 Share Posted May 28, 2012 Well i dont offer a solution but i want to learn also why this happening. [font="verdana, geneva, sans-serif"] [/font] 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