On Sun, 28 Sep 2003 11:29:44 -0700, "Craig" <(E-Mail Removed)> wrote:
>Hi folks,
>Is it possible to query the registry and determine which
>version of Windows a client is running? Suggestions?
>
>Thanks,
>Craig
The following is one line
for /f "Skip=4 Tokens=2*" %%i in ('reg query
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v
ProductName') do set textversion=%%j
Reg.exe is from the W2K support tools or it is built into later versions.
Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com