Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1696

minor difference, cmd vs tcc

$
0
0
@echo off
::

FOR /F "usebackq tokens=3" %%i IN (`REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CurrentBuild 2^>nul`) DO SET /A "CurrentBuild=%%i"

echo CurrentBuild from registry is %CurrentBuild%
IF %CurrentBuild% GEQ 22000 (
echo yes, we are windows 11 based on CurrentBuild
)


============================

This works in cmd and TCC, but gives a spurious error or warning in TCC:
============================

d:\batch>winver2.bat
TCC: D:\batch\winver2.bat [4] No...

Read more

Viewing all articles
Browse latest Browse all 1696

Trending Articles