/docs/commands/FileGetVersion.htm
http://autohotkey-chinese.googlecode.com/ · HTML · 41 lines · 36 code · 5 blank · 0 comment · 0 complexity · d46bf692ab84120e365f6510cb0eb860 MD5 · raw file
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <title>FileGetVersion</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link href="../css/commands.css" rel="stylesheet" type="text/css">
- <link href="../css/print.css" rel="stylesheet" type="text/css" media="print">
- </head>
- <body>
-
- <h1>FileGetVersion</h1>
-
- <p>返回指定“文件”(通常是指可执行文件)的版本信息。<BR>
- </p>
-
- <p class="CommandSyntax">FileGetVersion, OutputVar [, Filename] </p>
- <h3>参数 </h3>
- <table border="1" width="100%" cellspacing="0" cellpadding="3" bordercolor="#C0C0C0">
- <tr>
- <td>OutputVar</td>
- <td>存储返回值(数字或字符串)的变量名。</td>
- </tr>
- <tr>
- <td width="15%">Filename</td>
- <td width="85%">[可选参数]目标文件或文件夹的名字,如果绝对路径没有指定,就假设在 <a href="../Variables.htm#WorkingDir">%A_WorkingDir%</a> 中。如果忽略不写,当前 <a href="LoopFile.htm">File-Loop</a> 中最深的文件将被代替使用。</td>
- </tr>
- </table>
- <h3>ErrorLevel</h3>
- <p>如果有问题的话 <a href="../misc/ErrorLevel.htm">ErrorLevel</a> 被设置为1,否则设置为0。</p>
- <h3>注意</h3>
- <p>大部分不可执行的文件(甚至有些EXE文件)没有版本信息,所以参数OutputVar在这些例子中便成了空值。</p>
- <h3>相关命令</h3>
- <p><a href="FileGetAttrib.htm">FileGetAttrib</a>, <a href="FileSetAttrib.htm">FileSetAttrib</a>, <a href="FileGetTime.htm">FileGetTime</a>, <a href="FileSetTime.htm">FileSetTime</a>, <a href="FileGetSize.htm">FileGetSize</a><a href="FileGetVersion.htm"></a>, <a href="LoopFile.htm">File-loop</a></p>
- <h3>示例</h3>
- <pre class="NoIndent">FileGetVersion, version, C:\My Application.exe
- FileGetVersion, version, %A_ProgramFiles%\AutoHotkey\AutoHotkey.exe</pre>
-
-
- </body>
- </html>