If DOSVer()

DOSVer() =|>|<|>=|<=|<>value or DOSVER() = range(value1, value2) is a function that returns the version number of the DOS operating system. You may compare against a single value or provide a range to compare against.

Example 1:

IF DOSVer() >= 5

ELSE

EXITMESSAGE

Not compatible with your DOS version - install ended.

EXIT

ENDIF

Checks for DOS 5.0 or greater on the user's system.

Example 2:

IF DOSVer() = range(3.1,4.9)

ELSE

EXITMESSAGE

Not compatible with your DOS version - install ended.

EXIT

ENDIF

Checks for at least DOS version 3.1 but less than version 5.0.