オープンソース・ソフトウェアの開発とダウンロード

Subversion リポジトリの参照

Contents of /trunk/doc/ja/html/macro/command/foldersearch.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4289 - (show annotations) (download) (as text)
Fri Jan 28 08:02:34 2011 UTC (13 years, 3 months ago) by maya
File MIME type: text/html
File size: 1455 byte(s)
マクロの例が複数あり、preが別れていないと分かりづらかったので修正
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=Shift_JIS">
6 <title>foldersearch</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>foldersearch</h1>
15
16 <p>
17 フォルダがあるか確かめる。
18 </p>
19
20 <pre class="macro-syntax">
21 foldersearch &lt;foldername&gt;
22 </pre>
23
24 <h2>解説</h2>
25
26 <p>
27 フォルダ &lt;foldername&gt; が存在するかどうか調べる。<br>
28 存在する場合は、システム変数 result に1が返る。存在しない場合は、result に0が返る。
29 </p>
30
31 <h2>注意</h2>
32
33 <p>
34 foldersearch コマンドは、&lt;foldername&gt; がファイルとして存在する場合には0を返す。このため、フォルダ作成前の存在チェックには使用できない。
35 </p>
36
37 <h2></h2>
38
39 <pre class="macro-example">
40 foldersearch 'data'
41 if result=0 messagebox 'Folder not found.' 'error'
42 </pre>
43
44 <pre class="macro-example">
45 name = 'data'
46 filesearch name
47 if result=1 then
48 foldersearch name
49 if result=1 then
50 sprintf2 msg '%s is a folder.' name
51 messagebox msg ''
52 else
53 sprintf2 msg '%s is a file.' name
54 messagebox msg ''
55 endif
56 else
57 sprintf2 msg '%s is not found.' name
58 messagebox msg ''
59 endif
60 </pre>
61
62 <h2>参照</h2>
63 <ul>
64 <li><a href="filesearch.html">filesearch</a></li>
65 </ul>
66
67 </body>
68 </html>

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