Jump to content
Sign in to follow this  
Unc3nZureD

FileCopy( )

Recommended Posts

Unc3nZureD

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

Share this post


Link to post
Share on other sites
Unc3nZureD

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?

Share this post


Link to post
Share on other sites
hawky358

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.