_winver shows 6.1 on windows 7

May 20, 2008
11,414
99
Syracuse, NY, USA
There are at least two ways to get more friendly descriptions of the Windows version.
Code:
v:\> echo %@WMI[. "SELECT Caption,CSDVersion from Win32_OperatingSystem"]
Microsoft Windows 7 Professional
Service Pack 1

v:\> echo %@regquery["HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProductName"]
Windows 7 Professional

v:\> echo %@regquery["HKLM\Software\Microsoft\Windows NT\CurrentVersion\CSDVersion"]
Service Pack 1
 
Mar 20, 2009
39
1
Takecommand21.pdf says in at least two places that _winver works for WIndows 7. Interestingly the ver command says windows 7 and windows version 6.1
 
Jun 2, 2008
359
4
As Vince mentioned above:
According to Microsoft Windows 7 **IS** version 6.1 (and Windows 8 is version 6.3).

To back that up, if you click Start, then type winver into the search field and hit Enter, that Windows utility (winver.exe) reports the same thing. 6.1 is the true underlying version of Windows 7. Even CMD reports 6.1 for its "ver" command.

Everything is working as it should.
 
Mar 20, 2009
39
1
You know I didn't care about what it reported before but this is from the v21 documentation on both _WINVER, and the VER command:

Updated Internal Variables:
_WINVER - Now returns the actual Windows version for Windows 7 / 8 / 10 instead of the Windows default API results (i.e., "10.0" instead of "6.3").

VER
Now returns the actual Windows version for Windows 7 / 8 / 10 instead of the Windows default API results (i.e., "10.0" instead of "6.3").



This is what _winver 21 reports on Windows7. It seems correct for Windows 10. I haven't tried it on Widows 8 as I am not a tester for Take Command. The ver command seems to use the results in _winver on both systems again not per the What's New in Version 21 documentation.

C:\howard\working>echo %_winver
6.1

I had hoped to believe JPSOFT documentation and not have to rely on Microsoft.
 
Last edited by a moderator:
Similar threads
Thread starter Title Forum Replies Date
Joe Caverly @DRIVETYPE shows IMDISK as 3 Fixed Disk, not 6 RAM Disk Support 6
D copy /g only shows transfer rate Support 1
Dmitry L. Kobyakov Fixed The Take Command File List Panel shows 0 for all file sizes at DVD Support 4
C Directory listing that shows NTFS file descriptions? Support 3
T Take Command shows "Administrator:" in the title bar Support 8
thorntonpg windows 11 Support 12
vefatica Windows 10 themes Support 0
J Take command does not start on Windows 10 Support 3
D How to? Windows Key-Left and Windows Key-Right Support 9
Joe Caverly PYTHON from Microsoft Windows Store Support 2
D Open Windows 10 Photos app from command line Support 11
vefatica Windows Terminal ... Pop-up location Support 1
Joe Caverly Windows Terminal and @SELECT Support 13
vefatica Console popup windows don't work correctly Support 0
D Layout debugger windows Support 2
L LIST's pop-up search loses focus in a Windows Terminal window Support 15
nickles ANSI Colors Windows 7 no longer working Support 6
S Windows Server version not being detected correctly in TCMD 26RC2 Support 9
D Which is the latest version for Windows XP? Support 2
rconn News Windows 7 Support Support 0
Joe Caverly Windows Size is 80x0 Support 2
rconn Dropping Windows 7 support in Take Command / TCC v26 Support 8
G Taskbar Windows 10 Support 7
T Windows Terminal Support 2
Joe Caverly Windows Sensor Support 5
vefatica Windows 10 and line wrapping selection? Support 6
fishman@panix.com New Problem with later Windows 10 Support 10
CWBillow Upgrade Windows 10's effect on TCMD and TCC Support 3
T Take Command v21 on Windows Server Support 1
Bill de Haan "Sensitive Privilege Use" in Windows security auditing Support 7
Joe Caverly Create Windows Jobs and optionally attach processes to a job Support 17
Joe Caverly What version and Windows OS are you using? Support 3
A Windows 10 This app can't run on your PC Support 2
G 4NT on Windows 10 Support 3
vefatica Undesired scrolling in Windows 10 enhanced console. Support 2
vefatica Windows 10 version number? Support 6
vefatica How do I see Windows 10's ANSI in action? Support 3
A List windows with titles matching given pattern? Support 2
M New "pinned" attribute (since Windows 10 1709) Support 6
Emilio III TCMD Tab titles on Insider Windows Support 2
kb6ojs Want to start TCMD v20 with every Windows 10 bootup Support 3
E Cannot paste dollar sign into TCC on Windows 10 1803 Support 7
M TCC incorrect dir output since Windows 1803 Support 6
G Version 20.11 installed on Windows 10 problems Support 9
fishman@panix.com TCC v22 & the Windows 10 Console Support 5
Per TCC/LE 14 64-bit won't start on Windows 10 Insider Preview 17063 (171213) Support 12
I tcmd versus tcc in Windows 10 Support 2
Dick Johnson DrawBox now broken in Windows 10? Support 6
CWBillow Editing in the root directory of windows 10 Support 6
CWBillow Clearing out the Windows Temp folder Support 2

Similar threads