WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Miscellaneous

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Wrong WinVersion Reported

 Keywords: Wrong Windows Version Platform operating System OS WinVersion Reported

Question:

I recently downloaded an update to my Winbatch and it included the 64 bit version. I suspect I'm missing something very basic, but, when I run the code below on my Win 7 system, I get different results, depending on which Winbatch version that I use.
minorver = WinVersion(0)
majorver = WinVersion(1)
buildver = WinVersion(2)
csdver = WinVersion(3)
Message("Windows Version", StrCat(majorver, ".", minorver, " ",buildver, " ", csdver))winver=Winversion(5)
Message ("Windows Version", winver)
Running 32-bit, it tells me that it's XP
5.1.2600 Service Pack 3
Running 64-bit, it tells me that it's Win 7
6.1.7601 Service Pack 1
What am I missing?

Answer:

Sounds like the system has been configured to execute the 32-bit WinBatch.exe in WinXP compatibility mode.

User Reply:

Well, You're dead on! I don't remember ever setting it that way, but sure enough, that's the mode it was in. Thanks!
Article ID:   W17985
Filename:   Wrong WinVersion Reported .txt
File Created: 2012:04:26:09:53:50
Last Updated: 2012:04:26:09:53:50