Re: jscript to find file version
- From: ggrothendieck@xxxxxxxxx
- Date: 13 Sep 2005 09:41:26 -0700
Serge Baltic wrote:
> Hello,
>
> > The Version: can be obtained using fso.GetVersionInfo but the File
> > version: requires a long program shown in vbscript at:
>
> -----------------
> import System.Diagnostics;
>
> var version = FileVersionInfo.GetVersionInfo("c:\\Windows\\Notepad.exe");
>
> print("File version is " + version.FileVersion);
> print("Product version is " + version.ProductVersion);
> -----------------
> File version is 5.1.2600.2180 (xpsp_sp2_rtm.040803-2158)
> Product version is 5.1.2600.2180
> -----------------
That would be much better than the program I mentioned from
the internet; however I don't really understand what is going on.
I tried creating a file called prodver.hta containing this
but it gave me a syntax error on line 9, the import
statement -- is that a valid statement???
<html>
<head>
</head>
<body>
<script language = jscript>
import System.Diagnostics;
var version =
FileVersionInfo.GetVersionInfo("c:\\Windows\\Notepad.exe");
document.write("File version is " + version.FileVersion);
document.write("Product version is " + version.ProductVersion);
</script>
</body>
</html>
.
- Follow-Ups:
- Re: jscript to find file version
- From: Serge Baltic
- Re: jscript to find file version
- References:
- jscript to find file version
- From: ggrothendieck
- Re: jscript to find file version
- From: Serge Baltic
- jscript to find file version
- Prev by Date: Re: XMLHTTP and accented characters
- Next by Date: jscript/javascript question
- Previous by thread: Re: jscript to find file version
- Next by thread: Re: jscript to find file version
- Index(es):
Relevant Pages
|
Loading