[Ttssh2-commit] [4287] getfileattr, setfileattr マクロコマンドのドキュメント

Back to archive index

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 &lt;filename&gt;
+</pre>
+
+<h2>Parameters</h2>
+
+<dl>
+	<dt class="macro">string &lt;filename&gt;</dt>
+	<dd>The file name or directory name</dd>
+</dl>
+
+<h2>Return Value</h2>
+
+<dl>
+	<dt class="macro">System valiable &lt;result&gt;</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 &lt;&gt; -1 then
+	if result &amp; $1 &gt; 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 &lt;filename&gt; &lt;attributes&gt;
+</pre>
+
+<h2>Parameters</h2>
+
+<dl>
+	<dt class="macro">string &lt;filename&gt;</dt>
+	<dd>The file name or directory name</dd>
+
+	<dt class="macro">integer &lt;attributes&gt;</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 &lt;result&gt;</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ƒ‹‚Ü‚½‚̓fƒBƒŒƒNƒgƒŠ‚Ì‘®«‚𓾂éB
+</p>
+
+<pre class="macro-syntax">
+getfileattr &lt;filename&gt;
+</pre>
+
+<h2>ƒpƒ‰ƒ[ƒ^</h2>
+
+<dl>
+	<dt class="macro">•¶Žš—ñ &lt;filename&gt;</dt>
+	<dd>ƒtƒ@ƒCƒ‹–¼‚Ü‚½‚̓fƒBƒŒƒNƒgƒŠ–¼</dd>
+</dl>
+
+<h2>•Ô‚è’l</h2>
+
+<dl>
+	<dt class="macro">ƒVƒXƒeƒ€•Ï” &lt;result&gt;</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‚µƒfƒBƒŒƒNƒgƒŠ</td>
+	      </tr>
+	      <tr>
+	        <td>$4</td>
+	        <td>ƒIƒyƒŒ[ƒeƒBƒ“ƒOƒVƒXƒeƒ€‚̈ꕔA‚Ü‚½‚̓IƒyƒŒ[ƒeƒBƒ“ƒOƒVƒXƒeƒ€ê—p</td>
+	      </tr>
+	      <tr>
+	        <td>$10</td>
+	        <td>ƒfƒBƒŒƒNƒgƒŠ</td>
+	      </tr>
+	      <tr>
+	        <td>$20</td>
+	        <td>ƒA[ƒJƒCƒu</td>
+	      </tr>
+	      <tr>
+	        <td>$80</td>
+	        <td>“Á‚É‘®«‚Í‚È‚¢</td>
+	      </tr>
+	      <tr>
+	        <td>$100</td>
+	        <td>ˆêŽžƒtƒ@ƒCƒ‹</td>
+	      </tr>
+	      <tr>
+	        <td>$200</td>
+	        <td>ƒXƒp[ƒXƒtƒ@ƒCƒ‹</td>
+	      </tr>
+	      <tr>
+	        <td>$400</td>
+	        <td>Ä‰ðÍƒ|ƒCƒ“ƒg‚ªŠÖ˜A•t‚¯‚ç‚ê‚Ä‚¢‚é‚©AƒVƒ“ƒ{ƒŠƒbƒNƒŠƒ“ƒN</td>
+	      </tr>
+	      <tr>
+	        <td>$800</td>
+	        <td>ˆ³k‚³‚ê‚Ä‚¢‚é</td>
+	      </tr>
+	      <tr>
+	        <td>$1000</td>
+	        <td>ƒIƒtƒ‰ƒCƒ“‚Ì‹L‰¯‘•’u‚Ö•¨—“I‚Ɉړ®‚³‚ꂽ(Windows 2000 ˆÈ~)</td>
+	      </tr>
+	      <tr>
+	        <td>$2000</td>
+	        <td>uƒCƒ“ƒfƒbƒNƒXƒT[ƒrƒXv‚̑ΏۂɂȂÁ‚Ä‚¢‚È‚¢(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 &lt;&gt; -1 then
+	if result &amp; $1 &gt; 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 ƒ‰ƒCƒuƒ‰ƒŠ <a href="http://msdn.microsoft.com/en-us/library/aa364944(v=VS.85).aspx">GetFileAttributes</a></li>
+  <li>MSDN ƒ‰ƒCƒuƒ‰ƒŠ <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ƒ‹‚Ü‚½‚̓fƒBƒŒƒNƒgƒŠ‚Ì‘®«‚ð•ÏX‚·‚éB
+</p>
+
+<pre class="macro-syntax">
+setfileattr &lt;filename&gt; &lt;attributes&gt;
+</pre>
+
+<h2>ƒpƒ‰ƒ[ƒ^</h2>
+
+<dl>
+	<dt class="macro">•¶Žš—ñ &lt;filename&gt;</dt>
+	<dd>ƒtƒ@ƒCƒ‹–¼‚Ü‚½‚̓fƒBƒŒƒNƒgƒŠ–¼</dd>
+
+	<dt class="macro">®” &lt;attributes&gt;</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‚µƒfƒBƒŒƒNƒgƒŠ</td>
+	      </tr>
+	      <tr>
+	        <td>$4</td>
+	        <td>ƒIƒyƒŒ[ƒeƒBƒ“ƒOƒVƒXƒeƒ€‚̈ꕔA‚Ü‚½‚̓IƒyƒŒ[ƒeƒBƒ“ƒOƒVƒXƒeƒ€ê—p</td>
+	      </tr>
+	      <tr>
+	        <td>$20</td>
+	        <td>ƒA[ƒJƒCƒu</td>
+	      </tr>
+	      <tr>
+	        <td>$80</td>
+	        <td>“Á‚É‘®«‚Í‚È‚¢</td>
+	      </tr>
+	      <tr>
+	        <td>$100</td>
+	        <td>ˆêŽžƒtƒ@ƒCƒ‹</td>
+	      </tr>
+	      <tr>
+	        <td>$1000</td>
+	        <td>ƒIƒtƒ‰ƒCƒ“‚Ì‹L‰¯‘•’u‚Ö•¨—“I‚Ɉړ®‚³‚ꂽ(Windows 2000 ˆÈ~)</td>
+	      </tr>
+	      <tr>
+	        <td>$2000</td>
+	        <td>uƒCƒ“ƒfƒbƒNƒXƒT[ƒrƒXv‚̑ΏۂɂȂÁ‚Ä‚¢‚È‚¢(Windows 2000 ˆÈ~)</td>
+	      </tr>
+	    </table>
+	</dd>
+</dl>
+
+<h2>•Ô‚è’l</h2>
+
+<dl>
+	<dt class="macro">ƒVƒXƒeƒ€•Ï” &lt;result&gt;</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 ƒ‰ƒCƒuƒ‰ƒŠ <a href="http://msdn.microsoft.com/en-us/library/aa365535(v=VS.85).aspx">SetFileAttributes</a></li>
+  <li>MSDN ƒ‰ƒCƒuƒ‰ƒŠ <a href="http://msdn.microsoft.com/en-us/library/gg258117(v=VS.85).aspx">File Attribute Constants</a></li>
+</ul>
+
+</body>
+</html>



Ttssh2-commit メーリングリストの案内
Back to archive index