maniaq Posted June 4, 2005 Posted June 4, 2005 hey, I'm trying to copy file to other directory, but I'm getting an error, here is my code: FileCopy("D:\Documents and Settings\Admin\Desktop\Vypress\VyChat.exe", "%systemdrive%\Program Files\Vypress Chat\" [, 1] )what did I did wrong?
MHz Posted June 4, 2005 Posted June 4, 2005 FileCopy("D:\Documents and Settings\Admin\Desktop\Vypress\VyChat.exe", @ProgramFilesDir & "\Vypress Chat\", 1)[ ] those brackets, in the examples, display optional parameters. You do not insert those brackets into the line itself.DOS Variables, do not expand within strings, unless you set the Opt() setting for it. I would recommend, using AutoIt macros for this.I used Scite4AutoIt3 first, so should be no typo this time?
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now