svnno****@sourc*****
svnno****@sourc*****
2011年 1月 26日 (水) 20:37:25 JST
Revision: 4287 http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4287 Author: maya Date: 2011-01-26 20:37:25 +0900 (Wed, 26 Jan 2011) Log Message: ----------- getfileattr, setfileattr ãã¯ãã³ãã³ãã®ããã¥ã¡ã³ã Added Paths: ----------- trunk/doc/en/html/macro/command/getfileattr.html trunk/doc/en/html/macro/command/setfileattr.html trunk/doc/ja/html/macro/command/getfileattr.html trunk/doc/ja/html/macro/command/setfileattr.html -------------- next part -------------- Added: trunk/doc/en/html/macro/command/getfileattr.html =================================================================== --- trunk/doc/en/html/macro/command/getfileattr.html (rev 0) +++ trunk/doc/en/html/macro/command/getfileattr.html 2011-01-26 11:37:25 UTC (rev 4287) @@ -0,0 +1,118 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" + "http://www.w3.org/TR/html4/strict.dtd"> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <title>getfileattr</title> + <meta http-equiv="Content-Style-Type" content="text/css"> + <link rel="stylesheet" href="../../style.css" type="text/css"> +</head> + +<body> + + +<h1>getfileattr</h1> + +<p> +Returns the attributes of a file or directory. +</p> + +<pre class="macro-syntax"> +getfileattr <filename> +</pre> + +<h2>Parameters</h2> + +<dl> + <dt class="macro">string <filename></dt> + <dd>The file name or directory name</dd> +</dl> + +<h2>Return Value</h2> + +<dl> + <dt class="macro">System valiable <result></dt> + <dd><!--®«Ìæ¾É¸s·éÆ -1 ªi[³êéB<br> + æ¾É¬÷·éÆA®«lªi[³êéB®«lÍȺÌlÌgÝí¹ÆÈéB--><br> + <table border="2"> + <tr> + <th>Value</th> + <th>Meaning</th> + </tr> + <tr> + <td>$1</td> + <td>Read only</td> + </tr> + <tr> + <td>$2</td> + <td>Hidden</td> + </tr> + <tr> + <td>$4</td> + <td>The operating system uses a part of, or uses exclusively</td> + </tr> + <tr> + <td>$10</td> + <td>Directory</td> + </tr> + <tr> + <td>$20</td> + <td>Archive</td> + </tr> + <tr> + <td>$80</td> + <td>Not have other attributes set</td> + </tr> + <tr> + <td>$100</td> + <td>Temporary</td> + </tr> + <tr> + <td>$200</td> + <td>Sparse file</td> + </tr> + <tr> + <td>$400</td> + <td>Has an associated reparse point, or a file that is a symbolic link</td> + </tr> + <tr> + <td>$800</td> + <td>Compressed</td> + </tr> + <tr> + <td>$1000</td> + <td>Physically moved to offline storage(Windows 2000 or later)</td> + </tr> + <tr> + <td>$2000</td> + <td>Not to be indexed by the content indexing service(Windows 2000 or later)</td> + </tr> + <tr> + <td>$4000</td> + <td>Encrypted</td> + </tr> + </table> + </dd> +</dl> + +<h2>Example</h2> + +<pre class="macro-example"> +file = 'c:\test.txt' +getfileattr file +if result <> -1 then + if result & $1 > 0 then + messagebox 'This file has readonly attribute.' file + endif +endif +</pre> + +<h2>See also</h2> +<ul> + <li><a href="setfileattr.html">setfileattr</a></li> + <li>MSDN Library <a href="http://msdn.microsoft.com/en-us/library/aa364944(v=VS.85).aspx">GetFileAttributes</a></li> + <li>MSDN Library <a href="http://msdn.microsoft.com/en-us/library/gg258117(v=VS.85).aspx">File Attribute Constants</a></li> +</ul> + +</body> +</html> Added: trunk/doc/en/html/macro/command/setfileattr.html =================================================================== --- trunk/doc/en/html/macro/command/setfileattr.html (rev 0) +++ trunk/doc/en/html/macro/command/setfileattr.html 2011-01-26 11:37:25 UTC (rev 4287) @@ -0,0 +1,99 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" + "http://www.w3.org/TR/html4/strict.dtd"> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <title>setfileattr</title> + <meta http-equiv="Content-Style-Type" content="text/css"> + <link rel="stylesheet" href="../../style.css" type="text/css"> +</head> + +<body> + + +<h1>setfileattr</h1> + +<p> +Sets attributes of a file or directory. +</p> + +<pre class="macro-syntax"> +setfileattr <filename> <attributes> +</pre> + +<h2>Parameters</h2> + +<dl> + <dt class="macro">string <filename></dt> + <dd>The file name or directory name</dd> + + <dt class="macro">integer <attributes></dt> + <dd><!--Ýè·é®«lðwè·éB®«lÍȺÌlÌgÝí¹ÆÈéB--><br> + <table border="2"> + <tr> + <th>Value</th> + <th>Meaning</th> + </tr> + <tr> + <td>$1</td> + <td>Read only</td> + </tr> + <tr> + <td>$2</td> + <td>Hidden</td> + </tr> + <tr> + <td>$4</td> + <td>The operating system uses a part of, or uses exclusively</td> + </tr> + <tr> + <td>$20</td> + <td>Archive</td> + </tr> + <tr> + <td>$80</td> + <td>Not have other attributes set</td> + </tr> + <tr> + <td>$100</td> + <td>Temporary</td> + </tr> + <tr> + <td>$1000</td> + <td>Physically moved to offline storage(Windows 2000 or later)</td> + </tr> + <tr> + <td>$2000</td> + <td>Not to be indexed by the content indexing service(Windows 2000 or later)</td> + </tr> + </table> + </dd> +</dl> + +<h2>Return Value</h2> + +<dl> + <dt class="macro">System valiable <result></dt> + <!--dd>®«ÌÏXɸs·éÆ0ªi[³êéB<br> + ¬÷·éÆ1ªi[³êéB</dd--> +</dl> + +<h2>Example</h2> + +<pre class="macro-example"> +; add readonly attribute +file = 'c:\test.txt' +getfileattr file +attr = result | $1 ; keep current attributes +setfileattr file attr +</pre> + +<h2>See also</h2> +<ul> + <li><a href="getfileattr.html">getfileattr</a></li> + <li>MSDN Library <a href="http://msdn.microsoft.com/en-us/library/aa365535(v=VS.85).aspx">SetFileAttributes</a></li> + <li>MSDN Library <a href="http://msdn.microsoft.com/en-us/library/gg258117(v=VS.85).aspx">File Attribute Constants</a></li> +</ul> + +</body> +</html> Added: trunk/doc/ja/html/macro/command/getfileattr.html =================================================================== --- trunk/doc/ja/html/macro/command/getfileattr.html (rev 0) +++ trunk/doc/ja/html/macro/command/getfileattr.html 2011-01-26 11:37:25 UTC (rev 4287) @@ -0,0 +1,118 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" + "http://www.w3.org/TR/html4/strict.dtd"> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> + <title>getfileattr</title> + <meta http-equiv="Content-Style-Type" content="text/css"> + <link rel="stylesheet" href="../../style.css" type="text/css"> +</head> + +<body> + + +<h1>getfileattr</h1> + +<p> +t@CܽÍfBNgÌ®«ð¾éB +</p> + +<pre class="macro-syntax"> +getfileattr <filename> +</pre> + +<h2>p[^</h2> + +<dl> + <dt class="macro">¶ñ <filename></dt> + <dd>t@C¼Ü½ÍfBNg¼</dd> +</dl> + +<h2>Ôèl</h2> + +<dl> + <dt class="macro">VXeÏ <result></dt> + <dd>®«Ìæ¾É¸s·éÆ -1 ªi[³êéB<br> + æ¾É¬÷·éÆA®«lªi[³êéB®«lÍȺÌlÌgÝí¹ÆÈéB<br> + <table border="2"> + <tr> + <th>l</th> + <th>Ó¡</th> + </tr> + <tr> + <td>$1</td> + <td>ÇÝæèêp</td> + </tr> + <tr> + <td>$2</td> + <td>Bµt@CܽÍBµfBNg</td> + </tr> + <tr> + <td>$4</td> + <td>Iy[eBOVXeÌêAܽÍIy[eBOVXeêp</td> + </tr> + <tr> + <td>$10</td> + <td>fBNg</td> + </tr> + <tr> + <td>$20</td> + <td>A[JCu</td> + </tr> + <tr> + <td>$80</td> + <td>ÁÉ®«ÍÈ¢</td> + </tr> + <tr> + <td>$100</td> + <td>êt@C</td> + </tr> + <tr> + <td>$200</td> + <td>Xp[Xt@C</td> + </tr> + <tr> + <td>$400</td> + <td>ÄðÍ|CgªÖAt¯çêÄ¢é©AV{bNN</td> + </tr> + <tr> + <td>$800</td> + <td>³k³êÄ¢é</td> + </tr> + <tr> + <td>$1000</td> + <td>ItCÌL¯uÖ¨IÉÚ®³ê½(Windows 2000 È~)</td> + </tr> + <tr> + <td>$2000</td> + <td>uCfbNXT[rXvÌÎÛÉÈÁĢȢ(Windows 2000 È~)</td> + </tr> + <tr> + <td>$4000</td> + <td>û³êÄ¢é</td> + </tr> + </table> + </dd> +</dl> + +<h2>á</h2> + +<pre class="macro-example"> +file = 'c:\test.txt' +getfileattr file +if result <> -1 then + if result & $1 > 0 then + messagebox 'This file has readonly attribute.' file + endif +endif +</pre> + +<h2>QÆ</h2> +<ul> + <li><a href="setfileattr.html">setfileattr</a></li> + <li>MSDN Cu <a href="http://msdn.microsoft.com/en-us/library/aa364944(v=VS.85).aspx">GetFileAttributes</a></li> + <li>MSDN Cu <a href="http://msdn.microsoft.com/en-us/library/gg258117(v=VS.85).aspx">File Attribute Constants</a></li> +</ul> + +</body> +</html> Added: trunk/doc/ja/html/macro/command/setfileattr.html =================================================================== --- trunk/doc/ja/html/macro/command/setfileattr.html (rev 0) +++ trunk/doc/ja/html/macro/command/setfileattr.html 2011-01-26 11:37:25 UTC (rev 4287) @@ -0,0 +1,99 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" + "http://www.w3.org/TR/html4/strict.dtd"> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> + <title>setfileattr</title> + <meta http-equiv="Content-Style-Type" content="text/css"> + <link rel="stylesheet" href="../../style.css" type="text/css"> +</head> + +<body> + + +<h1>setfileattr</h1> + +<p> +t@CܽÍfBNgÌ®«ðÏX·éB +</p> + +<pre class="macro-syntax"> +setfileattr <filename> <attributes> +</pre> + +<h2>p[^</h2> + +<dl> + <dt class="macro">¶ñ <filename></dt> + <dd>t@C¼Ü½ÍfBNg¼</dd> + + <dt class="macro">® <attributes></dt> + <dd>Ýè·é®«lðwè·éB®«lÍȺÌlÌgÝí¹ÆÈéB<br> + <table border="2"> + <tr> + <th>l</th> + <th>Ó¡</th> + </tr> + <tr> + <td>$1</td> + <td>ÇÝæèêp</td> + </tr> + <tr> + <td>$2</td> + <td>Bµt@CܽÍBµfBNg</td> + </tr> + <tr> + <td>$4</td> + <td>Iy[eBOVXeÌêAܽÍIy[eBOVXeêp</td> + </tr> + <tr> + <td>$20</td> + <td>A[JCu</td> + </tr> + <tr> + <td>$80</td> + <td>ÁÉ®«ÍÈ¢</td> + </tr> + <tr> + <td>$100</td> + <td>êt@C</td> + </tr> + <tr> + <td>$1000</td> + <td>ItCÌL¯uÖ¨IÉÚ®³ê½(Windows 2000 È~)</td> + </tr> + <tr> + <td>$2000</td> + <td>uCfbNXT[rXvÌÎÛÉÈÁĢȢ(Windows 2000 È~)</td> + </tr> + </table> + </dd> +</dl> + +<h2>Ôèl</h2> + +<dl> + <dt class="macro">VXeÏ <result></dt> + <dd>®«ÌÏXɸs·éÆ0ªi[³êéB<br> + ¬÷·éÆ1ªi[³êéB</dd> +</dl> + +<h2>á</h2> + +<pre class="macro-example"> +; add readonly attribute +file = 'c:\test.txt' +getfileattr file +attr = result | $1 ; keep current attributes +setfileattr file attr +</pre> + +<h2>QÆ</h2> +<ul> + <li><a href="getfileattr.html">getfileattr</a></li> + <li>MSDN Cu <a href="http://msdn.microsoft.com/en-us/library/aa365535(v=VS.85).aspx">SetFileAttributes</a></li> + <li>MSDN Cu <a href="http://msdn.microsoft.com/en-us/library/gg258117(v=VS.85).aspx">File Attribute Constants</a></li> +</ul> + +</body> +</html>