コード例 #1
0
ファイル: _FileFolderExt.cs プロジェクト: yongzhi444/sharpAHK
        /// <summary>Changes the datetime stamp of one or more files or folders. Wildcards are supported.</summary>
        /// <param name="YYYYMMDDHH24MISS">If blank or omitted, it defaults to the current time. Otherwise, specify the time to use for the operation (see Remarks for the format). Years prior to 1601 are not supported.</param>
        /// <param name="FilePattern">The name of a single file or folder, or a wildcard pattern such as C:\Temp\*.tmp. FilePattern is assumed to be in %A_WorkingDir% if an absolute path isn't specified.</param>
        /// <param name="WhichTime">M = Modification time (this is the default if the parameter is blank or omitted) | C = Creation time | A = Last access time</param>
        /// <param name="OperateOnFolders">0 (default) Folders are not operated upon (only files). | 1 All files and folders that match the wildcard pattern are operated upon. | 2 Only folders are operated upon (no files).</param>
        /// <param name="Recurse">False (default) Subfolders are not recursed into. | True = Subfolders are recursed into so that files and folders contained therein are operated upon if they match FilePattern.</param>
        public static bool FileSetTime(this string YYYYMMDDHH24MISS, string FilePattern = "", string WhichTime = "", string OperateOnFolders = "", bool Recurse = false)
        {
            _AHK ahk = new _AHK();

            return(ahk.FileSetTime(YYYYMMDDHH24MISS, FilePattern, WhichTime, OperateOnFolders, Recurse));
        }