svnno****@sourc*****
svnno****@sourc*****
2016年 9月 23日 (金) 23:36:56 JST
Revision: 6491 http://sourceforge.jp/projects/ttssh2/scm/svn/commits/6491 Author: yutakapon Date: 2016-09-23 23:36:56 +0900 (Fri, 23 Sep 2016) Log Message: ----------- チケット #36643 ディレクトリ存在判別 filestat マクロコマンドの説明を修正した。 Ticket Links: ------------ http://sourceforge.jp/projects/ttssh2/tracker/detail/36643 Modified Paths: -------------- trunk/doc/en/html/macro/command/filestat.html trunk/doc/ja/html/macro/command/filestat.html -------------- next part -------------- Modified: trunk/doc/en/html/macro/command/filestat.html =================================================================== --- trunk/doc/en/html/macro/command/filestat.html 2016-09-23 13:25:06 UTC (rev 6490) +++ trunk/doc/en/html/macro/command/filestat.html 2016-09-23 14:36:56 UTC (rev 6491) @@ -14,7 +14,7 @@ <h1>filestat</h1> <p> -Gets status information on a file. +Gets status information on a file or folder. </p> <pre class="macro-syntax"> @@ -25,9 +25,9 @@ <p> Obtains information about the file or directory specified by <filename>.<br> -<size> is set to the size of the file in bytes. -<mtime> is set to the time of last modification of file. -<drive> is set to the drive number of the disk containing the file. +<size> is set to the size of the file in bytes.<br> +<mtime> is set to the time of last modification of file or folder.<br> +<drive> is set to the drive number of the disk containing the file or folder.<br> <br> The system variable "result" value of -1 indicates an error. </p> @@ -45,5 +45,23 @@ endif </pre> +<pre class="macro-example"> +filestat 'Macro' size time drive + +if result = -1 then + messagebox 'Directory open error' 'filestat' +else + sprintf2 str 'Directory size=%d Time modified=%s Drive=%s' size time drive + messagebox str 'filestat' + ; ex. Directory size=0 Time modified=2014-03-04 22:44:47 Drive=C +endif +</pre> + +<h2>See also</h2> +<ul> + <li><a href="foldersearch.html">foldersearch</a></li> + <li><a href="getfileattr.html">getfileattr</a></li> +</ul> + </body> </html> Modified: trunk/doc/ja/html/macro/command/filestat.html =================================================================== --- trunk/doc/ja/html/macro/command/filestat.html 2016-09-23 13:25:06 UTC (rev 6490) +++ trunk/doc/ja/html/macro/command/filestat.html 2016-09-23 14:36:56 UTC (rev 6491) @@ -14,7 +14,7 @@ <h1>filestat</h1> <p> -\x83t\x83@\x83C\x83\x8B\x82̓\x9D\x8Cv\x8F\xEE\x95\xF1\x82\xF0\x8E擾\x82\xB7\x82\xE9\x81B +\x83t\x83@\x83C\x83\x8B\x82\xE0\x82\xB5\x82\xAD\x82̓t\x83H\x83\x8B\x83_\x82̓\x9D\x8Cv\x8F\xEE\x95\xF1\x82\xF0\x8E擾\x82\xB7\x82\xE9\x81B </p> <pre class="macro-syntax"> @@ -24,8 +24,11 @@ <h2>\x89\xF0\x90\xE0</h2> <p> -\x83t\x83@\x83C\x83\x8B <filename> \x82̓\x9D\x8Cv\x8F\xEE\x95\xF1\x82\xF0\x8E擾\x82\xB7\x82\xE9\x81B<br> -\x83t\x83@\x83C\x83\x8B\x83T\x83C\x83Y\x82\xF0 <size> \x81A\x8DŏI\x95ύX\x8E\x9E\x8AԂ\xF0 <mtime> \x81A\x83h\x83\x89\x83C\x83u\x94ԍ\x86\x82\xF0 <drive> \x82Ɋi\x94[\x82\xB7\x82\xE9\x81B<br> +\x83t\x83@\x83C\x83\x8B\x82\xE0\x82\xB5\x82\xAD\x82̓t\x83H\x83\x8B\x83_ <filename> \x82̓\x9D\x8Cv\x8F\xEE\x95\xF1\x82\xF0\x8E擾\x82\xB7\x82\xE9\x81B<br> +\x83t\x83@\x83C\x83\x8B\x83T\x83C\x83Y\x82\xF0 <size> \x82Ɋi\x94[\x82\xB7\x82\xE9\x81B<br> +\x83t\x83@\x83C\x83\x8B\x82\xE0\x82\xB5\x82\xAD\x82̓t\x83H\x83\x8B\x83_\x82̍ŏI\x95ύX\x8E\x9E\x8AԂ\xF0 <mtime> \x82Ɋi\x94[\x82\xB7\x82\xE9\x81B<br> +\x83t\x83@\x83C\x83\x8B\x82\xE0\x82\xB5\x82\xAD\x82̓t\x83H\x83\x8B\x83_\x82̃h\x83\x89\x83C\x83u\x94ԍ\x86\x82\xF0 <drive> \x82Ɋi\x94[\x82\xB7\x82\xE9\x81B<br> +<br> \x8E擾\x82Ɏ\xB8\x94s\x82\xB5\x82\xBD\x8Fꍇ\x82́A\x83V\x83X\x83e\x83\x80\x95ϐ\x94 result \x82\xC9 -1 \x82\xAA\x8Ai\x94[\x82\xB3\x82\xEA\x82\xE9\x81B </p> @@ -42,5 +45,23 @@ endif </pre> +<pre class="macro-example"> +filestat 'Macro' size time drive + +if result = -1 then + messagebox 'Directory open error' 'filestat' +else + sprintf2 str 'Directory size=%d Time modified=%s Drive=%s' size time drive + messagebox str 'filestat' + ; ex. Directory size=0 Time modified=2014-03-04 22:44:47 Drive=C +endif +</pre> + +<h2>\x8EQ\x8F\xC6</h2> +<ul> + <li><a href="foldersearch.html">foldersearch</a></li> + <li><a href="getfileattr.html">getfileattr</a></li> +</ul> + </body> </html>