/// <summary>Sends a file or directory to the recycle bin, if possible.</summary> /// <param name="FilePattern">The name of a single file or a wildcard pattern such as C:\Temp\*.tmp. FilePattern is assumed to be in %A_WorkingDir% if an absolute path isn't specified. To recycle an entire directory, provide its name without a trailing backslash.</param> public static bool FileRecycle(this string FilePattern) { _AHK ahk = new _AHK(); return(ahk.FileRecycle(FilePattern)); }