Unc3nZureD Posted May 12, 2010 Share Posted May 12, 2010 (edited) hi I tried to copy a file with the filecopy script but it won'T work. I didn't know why. now i know. can't overwrite the old file. how can i copy a file with overwriting? my sorce is: FileCopy(@ScriptDir & "\packages\ac_client.exe", @ScriptDir & "\bin_win32\") how can i modify it to allow the overwriting? THANKS! Edited May 12, 2010 by Unc3nZureD Link to comment Share on other sites More sharing options...
KaFu Posted May 12, 2010 Share Posted May 12, 2010 (edited) FileSetAttrib(@ScriptDir & "\bin_win32\ac_client.exe, "-R") ; just to be sure FileCopy(@ScriptDir & "\packages\ac_client.exe", @ScriptDir & "\bin_win32\",9) ; 1 = overwrite existing files, 8 = Create destination directory structure if it doesn't exist Edit: flag 9 is better then flag 1. Edited May 12, 2010 by KaFu OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
Unc3nZureD Posted May 12, 2010 Author Share Posted May 12, 2010 Ohh great! thx very much. 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