/// <summary>Renames one or more files (same as FileMove)</summary> /// <param name="SourcePattern">The name of a single file or a wildcard pattern such as C:\Temp\*.tmp. SourcePattern is assumed to be in %A_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. To perform a simple move -- retaining the existing file name(s) -- specify only the folder name as shown in these functionally identical examples: FileMove, C:\*.txt, C:\My Folder</param> /// <param name="OverWrite">Determines whether to overwrite files if they already exist</param> public static bool FileRename(this string SourcePattern, string DestPattern, bool OverWrite = false) { _AHK ahk = new _AHK(); return(ahk.FileMove(SourcePattern, DestPattern, OverWrite)); }