Unc3nZureD Posted May 11, 2010 Share Posted May 11, 2010 (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 May 11, 2010 by Unc3nZureD Link to comment Share on other sites More sharing options...
Unc3nZureD Posted May 11, 2010 Author Share Posted May 11, 2010 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? Link to comment Share on other sites More sharing options...
hawky358 Posted May 11, 2010 Share Posted May 11, 2010 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 Link to comment Share on other sites More sharing options...
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