Jump to content
Sign in to follow this  
Proph

Odd FileCopy / _FileListToArray issue...

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 ****
#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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...