[Ttssh2-commit] [3823] YMODEM マクロコマンドを追加した。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2010年 3月 25日 (木) 22:47:43 JST


Revision: 3823
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3823
Author:   yutakapon
Date:     2010-03-25 22:47:43 +0900 (Thu, 25 Mar 2010)

Log Message:
-----------
YMODEM マクロコマンドを追加した。
 ・ymodemsend
 ・ymodemrecv

ZMODEM マクロコマンドのサンプルコード誤りを修正した。

Modified Paths:
--------------
    trunk/doc/en/html/about/history.html
    trunk/doc/en/html/macro/command/index.html
    trunk/doc/en/html/macro/command/zmodemrecv.html
    trunk/doc/en/html/macro/command/zmodemsend.html
    trunk/doc/en/teraterm.hhc
    trunk/doc/en/teraterm.hhp
    trunk/doc/ja/html/about/history.html
    trunk/doc/ja/html/macro/command/index.html
    trunk/doc/ja/html/macro/command/zmodemrecv.html
    trunk/doc/ja/html/macro/command/zmodemsend.html
    trunk/doc/ja/teraterm.hhc
    trunk/doc/ja/teraterm.hhp

Added Paths:
-----------
    trunk/doc/en/html/macro/command/ymodemrecv.html
    trunk/doc/en/html/macro/command/ymodemsend.html
    trunk/doc/ja/html/macro/command/ymodemrecv.html
    trunk/doc/ja/html/macro/command/ymodemsend.html


-------------- next part --------------
Modified: trunk/doc/en/html/about/history.html
===================================================================
--- trunk/doc/en/html/about/history.html	2010-03-25 13:19:53 UTC (rev 3822)
+++ trunk/doc/en/html/about/history.html	2010-03-25 13:47:43 UTC (rev 3823)
@@ -38,6 +38,8 @@
         <ul>
           <li>added the "YMODEM" under the Transfer of File menu.</li>
           <li>added the YmodemRcvCommand entry in the teraterm.ini file. The default is empty.</li>
+          <li>added the "<a href="../macro/command/ymodemrecv.html">ymodemrecv</a>" macro command.</li>
+          <li>added the "<a href="../macro/command/ymodemsend.html">ymodemsend</a>" macro command.</li>
         </ul></li>
     </ul>
   </li>

Modified: trunk/doc/en/html/macro/command/index.html
===================================================================
--- trunk/doc/en/html/macro/command/index.html	2010-03-25 13:19:53 UTC (rev 3822)
+++ trunk/doc/en/html/macro/command/index.html	2010-03-25 13:47:43 UTC (rev 3823)
@@ -76,6 +76,8 @@
  <li><a href="waitregex.html">waitregex</a> (version 4.21 or later)
  <li><a href="xmodemrecv.html">xmodemrecv</a>
  <li><a href="xmodemsend.html">xmodemsend</a>
+ <li><a href="ymodemrecv.html">ymodemrecv</a> (version 4.66 or later)
+ <li><a href="ymodemsend.html">ymodemsend</a> (version 4.66 or later)
  <li><a href="zmodemrecv.html">zmodemrecv</a>
  <li><a href="zmodemsend.html">zmodemsend</a>
 </ul>

Added: trunk/doc/en/html/macro/command/ymodemrecv.html
===================================================================
--- trunk/doc/en/html/macro/command/ymodemrecv.html	                        (rev 0)
+++ trunk/doc/en/html/macro/command/ymodemrecv.html	2010-03-25 13:47:43 UTC (rev 3823)
@@ -0,0 +1,36 @@
+<!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>ymodemrecv</title>
+  <meta http-equiv="Content-Style-Type" content="text/css">
+  <link rel="stylesheet" href="../../style.css" type="text/css">
+</head>
+
+<body>
+
+
+<h1>ymodemrecv</h1>
+
+<p>
+Receives a file from the host with the YMODEM protocol.
+</p>
+
+<pre class="macro-syntax">
+ymodemrecv
+</pre>
+
+<h2>Remarks</h2>
+
+<p>
+Pauses until the end of the file transfer.<br>
+If the file is transferred successfully, the system variable "result" is set to 1. Otherwise, "result" is set to zero.
+</p>
+
+<h2>Reference</h2>
+
+<a href="ymodemsend.html">ymodemsend</a><br>
+
+</body>
+</html>

Added: trunk/doc/en/html/macro/command/ymodemsend.html
===================================================================
--- trunk/doc/en/html/macro/command/ymodemsend.html	                        (rev 0)
+++ trunk/doc/en/html/macro/command/ymodemsend.html	2010-03-25 13:47:43 UTC (rev 3823)
@@ -0,0 +1,68 @@
+<!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>ymodemsend</title>
+  <meta http-equiv="Content-Style-Type" content="text/css">
+  <link rel="stylesheet" href="../../style.css" type="text/css">
+</head>
+
+<body>
+
+
+<h1>ymodemsend</h1>
+
+<p>
+Sends a file from the host with the YMODEM protocol.
+</p>
+
+<pre class="macro-syntax">
+ymodemsend &lt;filename&gt; 
+</pre>
+
+<h2>Remarks</h2>
+
+<p>
+Causes Tera Term to send the file &lt;filename&gt; to the host with the YMODEM protocol. Pauses until the end of the file transfer.<br>
+If the file is transferred successfully, the system variable "result" is set to 1. Otherwise, "result" is set to zero.
+</p>
+
+<h2>Example</h2>
+
+<pre class="macro-example">
+filename = 'test.ttl'
+srcfile = 'C:\Documents and Settings\yutaka\My Documents\TeraTermMacro\test.ttl'
+dstfile = 'C:\usr\ttssh2\teraterm\debug\test.ttl'
+
+ymodemsend srcfile
+if result=1 then
+	messagebox 'File transfer success' 'Send'
+else
+	messagebox 'File transfer failure' 'Send'
+endif
+
+sprintf2 var 'sb %s' filename
+sendln var
+ymodemrecv
+if result=1 then
+	messagebox 'File transfer success' 'Recv'
+else
+	messagebox 'File transfer failure' 'Recv'
+endif
+
+sprintf2 var 'fc /b %s %s' srcfile dstfile
+exec var
+if result=0 then
+	messagebox 'Two files are same.' 'Compare'
+else
+	messagebox 'Two files are not same.' 'Compare'
+endif
+</pre>
+
+<h2>Reference</h2>
+
+<a href="ymodemrecv.html">ymodemrecv</a><br>
+
+</body>
+</html>

Modified: trunk/doc/en/html/macro/command/zmodemrecv.html
===================================================================
--- trunk/doc/en/html/macro/command/zmodemrecv.html	2010-03-25 13:19:53 UTC (rev 3822)
+++ trunk/doc/en/html/macro/command/zmodemrecv.html	2010-03-25 13:47:43 UTC (rev 3823)
@@ -28,5 +28,9 @@
 If the file is transferred successfully, the system variable "result" is set to 1. Otherwise, "result" is set to zero.
 </p>
 
+<h2>Reference</h2>
+
+<a href="zmodemsend.html">zmodemsend</a><br>
+
 </body>
 </html>

Modified: trunk/doc/en/html/macro/command/zmodemsend.html
===================================================================
--- trunk/doc/en/html/macro/command/zmodemsend.html	2010-03-25 13:19:53 UTC (rev 3822)
+++ trunk/doc/en/html/macro/command/zmodemsend.html	2010-03-25 13:47:43 UTC (rev 3823)
@@ -36,8 +36,12 @@
 <h2>Example</h2>
 
 <pre class="macro-example">
-zmodem 'readme.txt' 0
+zmodemsend 'readme.txt' 0
 </pre>
 
+<h2>Reference</h2>
+
+<a href="zmodemrecv.html">zmodemrecv</a><br>
+
 </body>
 </html>

Modified: trunk/doc/en/teraterm.hhc
===================================================================
--- trunk/doc/en/teraterm.hhc	2010-03-25 13:19:53 UTC (rev 3822)
+++ trunk/doc/en/teraterm.hhc	2010-03-25 13:47:43 UTC (rev 3823)
@@ -869,6 +869,16 @@
 					<param name="ImageNumber" value="11">
 					</OBJECT>
 				<LI> <OBJECT type="text/sitemap">
+					<param name="Name" value="ymodemrecv">
+					<param name="Local" value="html\macro\command\ymodemrecv.html">
+					<param name="ImageNumber" value="11">
+					</OBJECT>
+				<LI> <OBJECT type="text/sitemap">
+					<param name="Name" value="ymodemsend">
+					<param name="Local" value="html\macro\command\ymodemsend.html">
+					<param name="ImageNumber" value="11">
+					</OBJECT>
+				<LI> <OBJECT type="text/sitemap">
 					<param name="Name" value="zmodemrecv">
 					<param name="Local" value="html\macro\command\zmodemrecv.html">
 					<param name="ImageNumber" value="11">

Modified: trunk/doc/en/teraterm.hhp
===================================================================
--- trunk/doc/en/teraterm.hhp	2010-03-25 13:19:53 UTC (rev 3822)
+++ trunk/doc/en/teraterm.hhp	2010-03-25 13:47:43 UTC (rev 3823)
@@ -291,6 +291,8 @@
 HlpMacroCommandXmodemrecv=html\macro\command\xmodemrecv.html
 HlpMacroCommandXmodemsend=html\macro\command\xmodemsend.html
 HlpMacroCommandYesnobox=html\macro\command\yesnobox.html
+HlpMacroCommandYmodemrecv=html\macro\command\ymodemrecv.html
+HlpMacroCommandYmodemsend=html\macro\command\ymodemsend.html
 HlpMacroCommandZmodemrecv=html\macro\command\zmodemrecv.html
 HlpMacroCommandZmodemsend=html\macro\command\zmodemsend.html
 HlpMacroAppendixes=html\macro\appendixes\index.html

Modified: trunk/doc/ja/html/about/history.html
===================================================================
--- trunk/doc/ja/html/about/history.html	2010-03-25 13:19:53 UTC (rev 3822)
+++ trunk/doc/ja/html/about/history.html	2010-03-25 13:47:43 UTC (rev 3823)
@@ -38,6 +38,8 @@
         <ul>
           <li>Fileƒƒjƒ…[‚ÌTransfer‚É"YMODEM"‚ð’ljÁ‚µ‚½B</li>
           <li>teraterm.ini‚É YmodemRcvCommand ƒGƒ“ƒgƒŠ‚ð’ljÁ‚µ‚½BƒfƒtƒHƒ‹ƒg‚Í‹óB</li>
+          <li>ƒ}ƒNƒƒRƒ}ƒ“ƒh "<a href="../macro/command/ymodemrecv.html">ymodemrecv</a>" ‚ð’ljÁ‚µ‚½B</li>
+          <li>ƒ}ƒNƒƒRƒ}ƒ“ƒh "<a href="../macro/command/ymodemsend.html">ymodemsend</a>" ‚ð’ljÁ‚µ‚½B</li>
         </ul></li>
     </ul>
   </li>

Modified: trunk/doc/ja/html/macro/command/index.html
===================================================================
--- trunk/doc/ja/html/macro/command/index.html	2010-03-25 13:19:53 UTC (rev 3822)
+++ trunk/doc/ja/html/macro/command/index.html	2010-03-25 13:47:43 UTC (rev 3823)
@@ -76,6 +76,8 @@
  <li><a href="waitregex.html">waitregex</a> (ƒo[ƒWƒ‡ƒ“ 4.21ˆÈ~)
  <li><a href="xmodemrecv.html">xmodemrecv</a>
  <li><a href="xmodemsend.html">xmodemsend</a>
+ <li><a href="ymodemrecv.html">ymodemrecv</a> (ƒo[ƒWƒ‡ƒ“ 4.66ˆÈ~)
+ <li><a href="ymodemsend.html">ymodemsend</a> (ƒo[ƒWƒ‡ƒ“ 4.66ˆÈ~)
  <li><a href="zmodemrecv.html">zmodemrecv</a>
  <li><a href="zmodemsend.html">zmodemsend</a>
 </ul>

Added: trunk/doc/ja/html/macro/command/ymodemrecv.html
===================================================================
--- trunk/doc/ja/html/macro/command/ymodemrecv.html	                        (rev 0)
+++ trunk/doc/ja/html/macro/command/ymodemrecv.html	2010-03-25 13:47:43 UTC (rev 3823)
@@ -0,0 +1,36 @@
+<!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>ymodemrecv</title>
+  <meta http-equiv="Content-Style-Type" content="text/css">
+  <link rel="stylesheet" href="../../style.css" type="text/css">
+</head>
+
+<body>
+
+
+<h1>ymodemrecv</h1>
+
+<p>
+YMODEM ƒvƒƒgƒRƒ‹‚Ńtƒ@ƒCƒ‹‚ðŽóM‚·‚éB
+</p>
+
+<pre class="macro-syntax">
+ymodemrecv
+</pre>
+
+<h2>‰ðà</h2>
+
+<p>
+ŽóM‚ªI‚í‚é‚Ü‚ÅŽŸ‚̃Rƒ}ƒ“ƒh‚ÍŽÀs‚³‚ê‚È‚¢B<br>
+ƒtƒ@ƒCƒ‹‚ª³‚µ‚­“]‘—‚³‚ꂽê‡AƒVƒXƒeƒ€•Ï” result ‚É 1 ‚ªŠi”[‚³‚ê‚éB‚»‚êˆÈŠO‚̏ꍇA result ‚É 0 ‚ªŠi”[‚³‚ê‚éB
+</p>
+
+<h2>ŽQÆ</h2>
+
+<a href="ymodemsend.html">ymodemsend</a><br>
+
+</body>
+</html>

Added: trunk/doc/ja/html/macro/command/ymodemsend.html
===================================================================
--- trunk/doc/ja/html/macro/command/ymodemsend.html	                        (rev 0)
+++ trunk/doc/ja/html/macro/command/ymodemsend.html	2010-03-25 13:47:43 UTC (rev 3823)
@@ -0,0 +1,68 @@
+<!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>ymodemsend</title>
+  <meta http-equiv="Content-Style-Type" content="text/css">
+  <link rel="stylesheet" href="../../style.css" type="text/css">
+</head>
+
+<body>
+
+
+<h1>ymodemsend</h1>
+
+<p>
+YMODEM ƒvƒƒgƒRƒ‹‚Ńtƒ@ƒCƒ‹‚𑗐M‚·‚éB
+</p>
+
+<pre class="macro-syntax">
+ymodemsend &lt;filename&gt;
+</pre>
+
+<h2>‰ðà</h2>
+
+<p>
+ƒtƒ@ƒCƒ‹ &lt;filename&gt; ‚ð YMODEM ƒvƒƒgƒRƒ‹‚Å‘—M‚·‚éB‘—M‚ªI‚í‚é‚Ü‚ÅŽŸ‚̃Rƒ}ƒ“ƒh‚ÍŽÀs‚³‚ê‚È‚¢B<br>
+ƒtƒ@ƒCƒ‹‚ª³‚µ‚­“]‘—‚³‚ꂽê‡AƒVƒXƒeƒ€•Ï” result ‚É1‚ªŠi”[‚³‚ê‚éB‚»‚êˆÈŠO‚̏ꍇA result ‚É0‚ªŠi”[‚³‚ê‚éB
+</p>
+
+<h2>—á</h2>
+
+<pre class="macro-example">
+filename = 'test.ttl'
+srcfile = 'C:\Documents and Settings\yutaka\My Documents\TeraTermMacro\test.ttl'
+dstfile = 'C:\usr\ttssh2\teraterm\debug\test.ttl'
+
+ymodemsend srcfile
+if result=1 then
+	messagebox 'File transfer success' 'Send'
+else
+	messagebox 'File transfer failure' 'Send'
+endif
+
+sprintf2 var 'sb %s' filename
+sendln var
+ymodemrecv
+if result=1 then
+	messagebox 'File transfer success' 'Recv'
+else
+	messagebox 'File transfer failure' 'Recv'
+endif
+
+sprintf2 var 'fc /b %s %s' srcfile dstfile
+exec var
+if result=0 then
+	messagebox 'Two files are same.' 'Compare'
+else
+	messagebox 'Two files are not same.' 'Compare'
+endif
+</pre>
+
+<h2>ŽQÆ</h2>
+
+<a href="ymodemrecv.html">ymodemrecv</a><br>
+
+</body>
+</html>

Modified: trunk/doc/ja/html/macro/command/zmodemrecv.html
===================================================================
--- trunk/doc/ja/html/macro/command/zmodemrecv.html	2010-03-25 13:19:53 UTC (rev 3822)
+++ trunk/doc/ja/html/macro/command/zmodemrecv.html	2010-03-25 13:47:43 UTC (rev 3823)
@@ -28,5 +28,9 @@
 ƒtƒ@ƒCƒ‹‚ª³‚µ‚­“]‘—‚³‚ꂽê‡AƒVƒXƒeƒ€•Ï” result ‚É 1 ‚ªŠi”[‚³‚ê‚éB‚»‚êˆÈŠO‚̏ꍇA result ‚É 0 ‚ªŠi”[‚³‚ê‚éB
 </p>
 
+<h2>ŽQÆ</h2>
+
+<a href="zmodemsend.html">zmodemsend</a><br>
+
 </body>
 </html>

Modified: trunk/doc/ja/html/macro/command/zmodemsend.html
===================================================================
--- trunk/doc/ja/html/macro/command/zmodemsend.html	2010-03-25 13:19:53 UTC (rev 3822)
+++ trunk/doc/ja/html/macro/command/zmodemsend.html	2010-03-25 13:47:43 UTC (rev 3823)
@@ -36,8 +36,12 @@
 <h2>—á</h2>
 
 <pre class="macro-example">
-zmodem 'readme.txt' 0
+zmodemsend 'readme.txt' 0
 </pre>
 
+<h2>ŽQÆ</h2>
+
+<a href="zmodemrecv.html">zmodemrecv</a><br>
+
 </body>
 </html>

Modified: trunk/doc/ja/teraterm.hhc
===================================================================
--- trunk/doc/ja/teraterm.hhc	2010-03-25 13:19:53 UTC (rev 3822)
+++ trunk/doc/ja/teraterm.hhc	2010-03-25 13:47:43 UTC (rev 3823)
@@ -881,6 +881,14 @@
 					<param name="ImageNumber" value="11">
 					</OBJECT>
 				<LI> <OBJECT type="text/sitemap">
+					<param name="Name" value="ymodemrecv">
+					<param name="Local" value="html\macro\command\ymodemrecv.html">
+					</OBJECT>
+				<LI> <OBJECT type="text/sitemap">
+					<param name="Name" value="ymodemsend">
+					<param name="Local" value="html\macro\command\ymodemsend.html">
+					</OBJECT>
+				<LI> <OBJECT type="text/sitemap">
 					<param name="Name" value="zmodemrecv">
 					<param name="Local" value="html\macro\command\zmodemrecv.html">
 					<param name="ImageNumber" value="11">

Modified: trunk/doc/ja/teraterm.hhp
===================================================================
--- trunk/doc/ja/teraterm.hhp	2010-03-25 13:19:53 UTC (rev 3822)
+++ trunk/doc/ja/teraterm.hhp	2010-03-25 13:47:43 UTC (rev 3823)
@@ -301,6 +301,8 @@
 HlpMacroCommandXmodemrecv=html\macro\command\xmodemrecv.html
 HlpMacroCommandXmodemsend=html\macro\command\xmodemsend.html
 HlpMacroCommandYesnobox=html\macro\command\yesnobox.html
+HlpMacroCommandYmodemrecv=html\macro\command\ymodemrecv.html
+HlpMacroCommandYmodemsend=html\macro\command\ymodemsend.html
 HlpMacroCommandZmodemrecv=html\macro\command\zmodemrecv.html
 HlpMacroCommandZmodemsend=html\macro\command\zmodemsend.html
 HlpMacroAppendixes=html\macro\appendixes\index.html



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