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

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
  • Recently Browsing   0 members

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