Jump to content

Recommended Posts

Posted

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?


Posted

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? :P

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...