/docs/commands/FileGetVersion.htm

http://autohotkey-chinese.googlecode.com/ · HTML · 41 lines · 36 code · 5 blank · 0 comment · 0 complexity · d46bf692ab84120e365f6510cb0eb860 MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  2. "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4. <head>
  5. <title>FileGetVersion</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <link href="../css/commands.css" rel="stylesheet" type="text/css">
  8. <link href="../css/print.css" rel="stylesheet" type="text/css" media="print">
  9. </head>
  10. <body>
  11. <h1>FileGetVersion</h1>
  12. <p>返回指定文件通常是指可执行文件的版本信息<BR>
  13. </p>
  14. <p class="CommandSyntax">FileGetVersion, OutputVar [, Filename] </p>
  15. <h3>参数 </h3>
  16. <table border="1" width="100%" cellspacing="0" cellpadding="3" bordercolor="#C0C0C0">
  17. <tr>
  18. <td>OutputVar</td>
  19. <td>存储返回值(数字或字符串)的变量名</td>
  20. </tr>
  21. <tr>
  22. <td width="15%">Filename</td>
  23. <td width="85%">[可选参数]目标文件或文件夹的名字如果绝对路径没有指定就假设在 <a href="../Variables.htm#WorkingDir">%A_WorkingDir%</a> 如果忽略不写当前 <a href="LoopFile.htm">File-Loop</a> 中最深的文件将被代替使用</td>
  24. </tr>
  25. </table>
  26. <h3>ErrorLevel</h3>
  27. <p>如果有问题的话 <a href="../misc/ErrorLevel.htm">ErrorLevel</a> 被设置为1否则设置为0</p>
  28. <h3>注意</h3>
  29. <p>大部分不可执行的文件(甚至有些EXE文件)没有版本信息所以参数OutputVar在这些例子中便成了空值</p>
  30. <h3>相关命令</h3>
  31. <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>
  32. <h3>示例</h3>
  33. <pre class="NoIndent">FileGetVersion, version, C:\My Application.exe
  34. FileGetVersion, version, %A_ProgramFiles%\AutoHotkey\AutoHotkey.exe</pre>
  35. </body>
  36. </html>