COUNTRY()
Evaluates the setting of COUNTRY in Config.sys.
Returns <expN> code on COUNTRY= line in Config.sys.

Returns zero (default country) if COUNTRY not specified in Config.sys
-1 if Config.sys cannot be found.

Uses COMSPEC to determine where to find Config.sys.

Also see the Country.prg sample program in the PRG source code.

Can be used in combination with DOSFUNC procedure to determine
country-dependent information, such as time format, currency symbol,
date format, etc.

country = COUNTRY()
? "This computer is set up for "
DO CASE
CASE country <= 001
?? "U.S.A."
CASE country = 033
?? "France"
CASE country = 044
?? "United Kingdom"
ENDCASE

Hazard
If you boot from a floppy disk, then change disks, or SET COMSPEC
to a different disk drive, this will not return the correct result
unless the new disk or drive also contains a Config.sys file with
the same information as the one with which you booted.


Placed in the Public Domain by Tom Rettig Assoc.