Done Suggestion for TCC 'ver' command

Jan 28, 2020
6
0
May I suggest a change for the output of TCC's ver command?

Currently it displays TCC version info before Windows version info.

TCC 25.00.27 x64 Windows 10 [Version 10.0.18362.592]

The "standard" Windows ver command just outputs

Microsoft Windows [Version 10.0.18362.592]

I was running a batch file that worked fine under CMD but broke because of this difference. It would have worked if the Windows version info was output prior to TTC version info e.g. something like

Windows 10 [Version 10.0.18362.592] TCC 25.00.27 x64

Just a thought and no big deal. It's just a minor incompatibility thing likely specific to me!
 
Jan 12, 2014
426
7
Switzerland, SO
IF, then please REALLY the same "output" as in CMD, which is (in the first part of the string):

Code:
Microsoft Windows [Version 10.0.18363.628]   TCC  25.00.27 x64
 
I think this is almost what is wanted;
Code:
e:\utils>echo Microsoft Windows %_dosver [Version %_winver.%_osbuild] TCC %_4ver.%_build %@if[%_x64 eq 1,x64,x32]
Microsoft Windows 10.0 [Version 10.0.18362] TCC 25.00.27 x64

Just missing the Windows minor version.

Joe
 
May 20, 2008
11,400
99
Syracuse, NY, USA
Code:
set _ubr=`%@regquery["HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\UBR"]`

I don't believe there is any official, non-hackey of getting this info.
The same goes for the Windows release ID.
Code:
v:\> set _winrelease=`%@regquery["HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ReleaseId"]`

v:\> echo %_winrelease
1909

Since getting any of the info talked about recently is an easy one-liner, I don't see the need for several new internal variables.
 
Aug 23, 2010
637
9
Unfortunately, all of the registry keys can be easily falsified.
There's no way to know real Windows version from OS itself via API anymore. All the relevant calls are outright lying to the applications.
 
Oct 18, 2009
362
17
I think most of the time when folks type VER we're looking for the TCC version, not the Windows version.

However, possible changes would be:

VER returns the windows version, like CMD, and these options are available. (I had to add ... because the editor won't take multiple spaces.)

VER /T ... (for VER /TCC)
VER /F ... (for VER /FULL)
VER /B ... (for VER /BOTH)

-or-
VER /W ... (for VER /Windows version only)
VER /C ... (for VER /mimic CMD)
 
Similar threads
Thread starter Title Forum Replies Date
Charles Dye Done HASH suggestion for v27 Suggestions 6
Charles Dye Done ASSOCIATE suggestion for v27 Suggestions 1
D Suggestion: VIEW option to open VIEW over tab window but not keep it there Suggestions 0
Alpengreis Done Suggestion for full osbuild internal variable Suggestions 2
D Done Suggestion: Add VIEW option to open in same position as current window Suggestions 0
D Suggestion: Tab or button to open new tab window in horizontal group Suggestions 1
Charles Dye @VERINFO suggestion Suggestions 0
D Done Suggestion: keystroke to copy previous argument Suggestions 3
H Done DEDUPE suggestion Suggestions 8
C Done Help suggestion TCMD Suggestions 3
C Declined copy /w suggestion Suggestions 2
J Done Everything Search Suggestion Suggestions 8
Fross Done sendmail suggestion Suggestions 1
K_Meinhard Declined Renewed suggestion Suggestions 0
S Declined TAIL suggestion Suggestions 0
A Done Cosmetic suggestion on displaying version number Suggestions 0
M Done TC 11 suggestion Suggestions 0
G Done V11 Suggestion Suggestions 3
J Done Suggestion for V11 Suggestions 8
Charles Dye Done v11 suggestion: plugin online help interface Suggestions 0
D Done Suggestion for commands to move/copy a folder Suggestions 7
J Done Variable Name Completion Suggestion Suggestions 0
Charles Dye Done Startup Tabs / Tab Toolbar suggestion Suggestions 1
Joe Caverly Have TCMD/TCC support registered version of V Suggestions 12
R Talk to Amazon about having TCC-RT available on AWS Suggestions 0
Joe Caverly Launch TCC Tab with different date/time Suggestions 0
R Option to add tcc to Bash profile Suggestions 1
mfarah Declined Implement an "Add TCC to the task bar" in the TCMD installer. Suggestions 2
R TCC instance-specific clipboard Suggestions 0
M Declined DST date difference explorer/TCC Suggestions 2
Joe Caverly Declined 32-bit out-of-process servers from 64-bit TCC via PSHELL Suggestions 0
A [TCC-RT] Console-less script runner Suggestions 3
Joe Caverly Add a "Snippet" Menu to CMDebug and TCC Debugger Suggestions 0
Joe Caverly Add example .BTM code to TCC Debugger and CMDebug Suggestions 1
thorntonpg Done Goto folder in file explorer from the current directory in the tcc prompt Suggestions 7
R Done System variable with TCC folder path Suggestions 8
rps TCC/TCMD instance expansion - TCC/TCMD info functions Suggestions 2
M TCC Install Updates Taskbar Link Suggestions 1
R Done Switch between TCC and RT on same PC Suggestions 1
rps Done TCC count internal variable Suggestions 12
G Declined make tcc being more "4dos" and win x64 faster Suggestions 7
rconn Some ideas related to TCC instances (limit, enumerate etc) Suggestions 0
rconn Declined Allow TC/TCC direct access to WinSock and other networking Suggestions 0
rconn Done extend tcc file format Suggestions 0
Roedy Done TCC Window title Suggestions 0
newbie Done Remove TCC from Cntrl-Pnl Recommended list Suggestions 10
R Declined REQ: Fullscreen mode for tcc. Suggestions 12
E Done TCC User/Administrator level in title bar Suggestions 2
R Declined TCC on a stick & PortableApps Suggestions 0
nickles Declined FR: New icon for TCC Suggestions 1

Similar threads