Пример #1
0
        /// <summary>Copies one or more files.</summary>
        /// <param name="SourcePattern">The name of a single file or folder, or a wildcard pattern such as C:\Temp\*.tmp. SourcePattern is assumed to be in WorkingDir if an absolute path isn't specified.</param>
        /// <param name="DestPattern">The name or pattern of the destination, which is assumed to be in %A_WorkingDir% if an absolute path isn't specified.</param>
        /// <param name="OverWrite">Flag determines whether to overwrite files if they already exist. True = OverWrite Existing Files</param>
        /// <param name="ProgressDialog">Option to Display Windows FileCopy Dialog While File Transfers</param>
        public static bool FileCopy(this string SourcePattern, string DestPattern, bool OverWrite = false, bool ProgressDialog = false)
        {
            _AHK ahk = new _AHK();

            return(ahk.FileCopy(SourcePattern, DestPattern, OverWrite, ProgressDialog));
        }