コード例 #1
0
ファイル: _FileFolderExt.cs プロジェクト: yongzhi444/sharpAHK
        ///// <summary>Retrieves the size of a folder.</summary>
        ///// <param name="DirPath">Directory to poll for current disk size.</param>
        ///// <param name="Units">If present, this parameter causes the result to be returned in units other than bytes: K = kilobytes | M = megabytes</param>
        //public static string DirSize(this string DirPath, string Units = "")
        //{
        //    _AHK ahk = new _AHK();
        //    return ahk.DirSize(DirPath, Units);
        //}


        /// <summary>Retrieves the datetime stamp of a file or folder.</summary>
        /// <param name="Filename">The name of the target file, which is assumed to be in %A_WorkingDir% if an absolute path isn't specified.</param>
        /// <param name="WhichTime">Which timestamp to retrieve: M = Modification time (default if omitted) | C = Creation time | A = Last access time   </param>
        public static string FileGetTime(this string Filename, string WhichTime = "")
        {
            _AHK ahk = new _AHK();

            return(ahk.FileGetTime(Filename, WhichTime));
        }