Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/doc/en/html/macro/command/dirname.html

Parent Directory Parent Directory | Revision Log 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: 1149 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>dirname</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>dirname</h1>
15
16 <p>
17 Returns the directory name from a path name. <em>(version 4.69 or later)</em>
18 </p>
19
20 <pre class="macro-syntax">
21 dirname &lt;strvar&gt; &lt;path&gt;
22 </pre>
23
24 <h2>Remarks</h2>
25
26 <p>
27 Given a &lt;path&gt; pathname, this macro will delete any suffix beginning with the last slash('/') character and return the result into the &lt;strvar&gt; variable name.<br>
28 The pathname will need not be existed.
29 </p>
30
31 <h2>Example</h2>
32
33 <pre class="macro-example">
34 dirname dir 'c:\teraterm\test.txt'
35 ; dir = "c:\teraterm"
36 dirname dir 'c:\teraterm\'
37 ; dir = "c:"
38 dirname dir 'c:\teraterm'
39 ; dir = "c:"
40 </pre>
41
42 <h2>See also</h2>
43 <ul>
44 <li><a href="basename.html">dirname</a></li>
45 <li><a href="makepath.html">makepath</a></li>
46 </ul>
47
48 </body>
49 </html>

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26