Browse Subversion Repository
Contents of /trunk/doc/en/html/macro/command/ispassword.html
Parent Directory
| Revision Log
Revision 8939 -
( show annotations)
( download)
( as text)
Thu Oct 1 16:06:58 2020 UTC
(3 years, 7 months ago)
by nmaya
File MIME type: text/html
File size: 1549 byte(s)
マクロコマンドが Tera Term バージョンいくつから存在するか、それぞれのマクロコマンドのヘルプページに記載
ticket #40808
MFT to: 4-stable
| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
| 2 |
"http://www.w3.org/TR/html4/strict.dtd"> |
| 3 |
<html> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
| 6 |
<title>ispassword</title> |
| 7 |
<meta http-equiv="Content-Style-Type" content="text/css"> |
| 8 |
<link rel="stylesheet" href="../../style.css" type="text/css"> |
| 9 |
</head> |
| 10 |
|
| 11 |
<body> |
| 12 |
|
| 13 |
|
| 14 |
<h1>ispassword</h1> |
| 15 |
|
| 16 |
<p> |
| 17 |
Determines if a password is stored. <em>(version 4.75 or later)</em> |
| 18 |
</p> |
| 19 |
|
| 20 |
<h2>Format</h2> |
| 21 |
|
| 22 |
<pre class="macro-syntax"> |
| 23 |
ispassword <filename> <password name> |
| 24 |
</pre> |
| 25 |
|
| 26 |
<h2>Remarks</h2> |
| 27 |
|
| 28 |
<p> |
| 29 |
A password identified by <password name> from the password file <filename> is determined if the password is stored in the file.<br> |
| 30 |
</p> |
| 31 |
|
| 32 |
<p> |
| 33 |
When a password identified by <password name> exists in the password file, the system variable "result" is set to 1. Otherwise, "result" is set to 0. |
| 34 |
</p> |
| 35 |
|
| 36 |
<h2>Example</h2> |
| 37 |
|
| 38 |
<pre class="macro-example"> |
| 39 |
strdim pw 2 |
| 40 |
username = 'yutaka' |
| 41 |
|
| 42 |
<strong>ispassword</strong> 'pw.dat' username ; result: 0=false; 1=true |
| 43 |
if result = 1 then |
| 44 |
getpassword 'pw.dat' username pw[0] |
| 45 |
pw[1] = pw[0] |
| 46 |
else |
| 47 |
msg = 'What is your password for ' |
| 48 |
strconcat msg username |
| 49 |
strconcat msg '?' |
| 50 |
passwordbox msg 'Enter your password' |
| 51 |
pw[0] = inputstr |
| 52 |
pw[1] = pw[0] |
| 53 |
setpassword 'pw.dat' username pw[0] |
| 54 |
endif |
| 55 |
</pre> |
| 56 |
|
| 57 |
<h2>See also</h2> |
| 58 |
<ul> |
| 59 |
<li><a href="getpassword.html">getpassword</a></li> |
| 60 |
<li><a href="setpassword.html">setpassword</a></li> |
| 61 |
</ul> |
| 62 |
|
| 63 |
</body> |
| 64 |
</html> |
|