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