China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-01 13:22
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » How to programmatically read the Windows version number under DOS View 724 Replies 3
Original Poster Posted 2005-04-18 00:00 ·  中国 广东 汕头 电信
初级用户
Credits 105
Posts 1
Joined 2005-04-18 00:00
21-year member
UID 38310
Gender Male
Status Offline
How can I programmatically read the Windows version number under DOS?
Floor 2 Posted 2005-04-19 00:00 ·  中国 湖北 武汉 硚口区 电信
初级用户
ProGamer
Credits 129
Posts 23
Joined 2005-04-14 00:00
21-year member
UID 38147
Gender Male
Status Offline
At the NT command line, type ver or winver
I'm a progamer who work with windos
not a programmer with windows
Floor 3 Posted 2005-04-25 00:00 ·  中国 湖北 荆州 电信
高级用户
★★★
Credits 994
Posts 444
Joined 2005-01-29 00:00
21-year member
UID 35779
Gender Male
Status Offline
What DOS? MS-DOS 6.22?
Floor 4 Posted 2005-05-13 00:00 ·  中国 四川 眉山 电信
中级用户
★★
Credits 355
Posts 99
Joined 2003-01-06 00:00
23-year member
UID 690
Gender Male
Status Offline
Under pure DOS, I think it's best to determine it by reading the version number of a specified file. If it's just a batch file, you can use NDOS features to read the size of a specified file and judge from that.
Forum Jump: