Jump to content

Recommended Posts

Posted (edited)

Hi. How can i copy a file from a given directory to another with script? If possible i want automatic overwrite is it possible too?

I tried to search in help but didn't found it.

thanks!

Edited by Unc3nZureD
Posted

I've got another problem. I've found the FileCopy command, but how can i solve that when i don't know the name of the source. i know only for example ?:\???\here but i need to work only at the here folder.

my source is

FileCopy("\Packages\ac_client.exe", "\bin_win32\")

but it don't works. why?

Posted

If the script is in the "here" folder you can use the @ScriptDir macro i.e.

FileCopy(@ScriptDir & "\here\ac_client.exe", @ScriptDir & "\bin_win32\")

I'm not sure if that's what you mean, because if you have no idea what the name of the source is then how do you work with it, maybe you can give an example

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