中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-12 12:15
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » How can I identify the DOS version in Win98
Printable Version  1,199 / 5
Floor1 米高佳 Posted 2003-05-14 00:00
初级用户 Posts 5 Credits 127
Floor2 Roy Posted 2003-05-14 00:00
管理员 Posts 1,633 Credits 4,869
Floor3 Wengier Posted 2003-05-14 00:00
系统支持 Posts 10,521 Credits 27,736
Many tools can do it. For example, when HIRAM starts it displays a big “MS-DOS 7.10”!
Floor4 pfox Posted 2003-05-15 00:00
银牌会员 Posts 446 Credits 1,451
Here’s an example:

@ECHO OFF
VER | FIND.EXE/I "Win">NUL
IF ERRORLEVEL 1 GOTO DOS6
IF ERRORLEVEL 0 GOTO DOS7
OS7
MEM.EXE/C | FIND.EXE/I "vmm32">NUL
IF ERRORLEVEL 1 GOTO DOS
IF ERRORLEVEL 0 GOTO WIN
:WIN
GOTO END
OS
GOTO END
OS6
VER | FIND "6">NUL
IF NOT ERRORLEVEL 0 GOTO END
:END
EXIT
Floor5 如是大师 Posted 2003-05-16 00:00
元老会员 Posts 3,351 Credits 9,654 From 湖北
Just use the VER command alone.
Floor6 Wengier Posted 2003-05-16 00:00
系统支持 Posts 10,521 Credits 27,736
Use STRINGS VER.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023