johnmcloud Posted July 4, 2012 Share Posted July 4, 2012 (edited) Hi guys, Maybe it's a stupid error, but really I can not find a solution. I have a txt with path of files, example: C:\Documents and Settings\Windows Xp\Desktop\autoit-v3-setup.exe C:\Documents and Settings\Windows Xp\Desktop\File.au3 C:\Documents and Settings\Windows Xp\Desktop\RecFileListToArray.au3 C:\Documents and Settings\Windows Xp\Desktop\SciTE4AutoIt3.exe The last line is empty. Now i want to copy the file and i have make this: $Log = FileRead(@WorkingDir & "\Final.txt") $aArray = StringSplit($Log, @LF) For $i = 1 To $aArray -1 ; - 1 remove last empty line ;~ MsgBox(0,0, $aArray[$i]) FileCopy($aArray[$i], "C:\") Next With MsgBox or ConsoleWrite i see the full path, but the FileCopy not work. Some advice? Thanks Edited July 4, 2012 by johnmcloud Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now