Jump to content

Recommended Posts

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 ****
#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, '*.*')

Please test this on your own systems by compileing both an x86 and a x64 exe. Let me know if you get any differences.



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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...