home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 July / CMCD0704.ISO / Software / Complet / FreeDOS / fdbootcd.iso / FREEDOS / SETUP / BATCH / regional.bat < prev    next >
DOS Batch File  |  2004-04-18  |  6KB  |  133 lines

  1. @echo off
  2. if "%1"=="setNLS" goto DoNLS
  3. rem called by AUTORUN.BAT as: "regional.bat 21" , then 21 is looked up,
  4. rem and regional.bat is called again, this time as 
  5. rem "regional.bat setNLS HU 348 852 EGA  hu hu208.kl /id:208"
  6. rem then we get: language=HU; country_ID=348 ; codepage=852, display table=EGA
  7. rem and finally: keyboard layout = Hungary with some special layout
  8.  
  9.  
  10. if "%1"== "1" call %0 setNLS  51 HY   899 EGA6 HY
  11. if "%1"== "2" call %0 setNLS 112 BE   849 EGA4 BL
  12. if "%1"== "3" call %0 setNLS  56 NL   858 EGA  BE
  13. if "%1"== "4" call %0 setNLS 191 HR   852 EGA  HR
  14. if "%1"== "5" call %0 setNLS 208 DA   858 EGA  DK
  15. if "%1"== "6" call %0 setNLS 233 ET   775 EGA2 ET
  16. if "%1"== "7" call %0 setNLS 246 FI   858 EGA  SU
  17. if "%1"== "8" call %0 setNLS 250 FR   858 EGA  FR
  18. if "%1"== "9" call %0 setNLS 268 KA 60853 EGA6 KA
  19. if "%1"=="10" call %0 setNLS 276 DE   858 EGA  GR
  20.  
  21. if "%1"=="11" call %0 setNLS 372 GA   858 EGA  IR
  22. if "%1"=="12" call %0 setNLS 380 IT   858 EGA  IT
  23. if "%1"=="13" call %0 setNLS 392 JA   932 ---  JP
  24. if "%1"=="14" call %0 setNLS 428 LV   775 EGA2 LV
  25. if "%1"=="15" call %0 setNLS 578 NO   858 EGA  NO
  26. if "%1"=="16" call %0 setNLS 642 RO   852 EGA  RO
  27. if "%1"=="17" call %0 setNLS 724 ES   858 EGA  SP
  28. if "%1"=="18" call %0 setNLS 752 SV   858 EGA  SV
  29. if "%1"=="19" call %0 setNLS 792 TR   857 EGA  TR TR440.KL /ID:440
  30. if "%1"=="20" call %0 setNLS 826 EN   858 EGA  UK
  31.  
  32. if "%1"=="21" call %0 setNLS 840 EN   858 EGA  US
  33. if "%1"=="22" call %0 setNLS  31 AZ 60258 EGA7 AZ
  34. if "%1"=="23" call %0 setNLS  76 PT   858 EGA  BR
  35. if "%1"=="24" call %0 setNLS  76 PT   858 EGA  BR BR274.KL /ID:274
  36. if "%1"=="25" call %0 setNLS 124 FR   858 EGA  CF
  37. if "%1"=="26" call %0 setNLS 203 CS   852 EGA  CZ CZ243.KL /ID:243
  38. if "%1"=="27" call %0 setNLS 234 FO   858 EGA  FO
  39. if "%1"=="28" call %0 setNLS 300 EL   869 EGA5 GK GK220.KL /ID:220
  40. if "%1"=="29" call %0 setNLS 300 EL   869 EGA5 GK
  41. if "%1"=="30" call %0 setNLS 398 KK 58152 EGA7 KK
  42.  
  43. if "%1"=="31" call %0 setNLS 417 KY 58152 EGA7 KY
  44. if "%1"=="32" call %0 setNLS --- ES   858 EGA  LA
  45. if "%1"=="33" call %0 setNLS 496 MN 58152 EGA7 MN
  46. if "%1"=="34" call %0 setNLS 528 NL   858 EGA  US
  47. if "%1"=="35" call %0 setNLS 608 TL   858 EGA  TL
  48. if "%1"=="36" call %0 setNLS 620 PT   858 EGA  PO
  49. if "%1"=="37" call %0 setNLS 643 RU   808 EGA3 RU
  50. if "%1"=="38" call %0 setNLS 703 SK   852 EGA  SK
  51. if "%1"=="39" call %0 setNLS 705 SL   852 EGA  SI
  52. if "%1"=="40" call %0 setNLS 840 EN   850 EGA  DV
  53.  
  54. if "%1"=="41" call %0 setNLS 840 EN   858 EGA  UX
  55. if "%1"=="42" call %0 setNLS 860 UZ 62306 EGA7 UZ
  56. if "%1"=="43" call %0 setNLS  70 BS   852 EGA  BA
  57. if "%1"=="44" call %0 setNLS 100 BG   872 EGA3 BG
  58. if "%1"=="45" call %0 setNLS 100 BG   872 EGA3 BG BG241.KL /ID:241
  59. if "%1"=="46" call %0 setNLS 124 FR   858 EGA  CF CF501.KL /ID:501
  60. if "%1"=="47" call %0 setNLS 300 EL   869 EGA5 GK GK459.KL /ID:459
  61. if "%1"=="48" call %0 setNLS 348 HU   852 EGA  HU
  62. if "%1"=="49" call %0 setNLS 348 HU   852 EGA  HU HU208.KL /ID:208
  63. if "%1"=="50" call %0 setNLS 352 IS   858 EGA  IS
  64.  
  65. if "%1"=="51" call %0 setNLS 352 IS   858 EGA  IS IS161.KL /ID:161
  66. if "%1"=="52" call %0 setNLS 440 LT   775 EGA2 LT LT210.KL /ID:210
  67. if "%1"=="53" call %0 setNLS 440 LT   775 EGA2 LT
  68. if "%1"=="54" call %0 setNLS 470 MT   853 EGA  MT MT166.KL /ID:166
  69. if "%1"=="55" call %0 setNLS 470 MT   853 EGA  MT
  70. if "%1"=="56" call %0 setNLS 616 PL   852 EGA  PL
  71. if "%1"=="57" call %0 setNLS 616 PL   852 EGA  PL PL214.KL /ID:214
  72. if "%1"=="58" call %0 setNLS 642 RO   852 EGA  RO RO446.KL /ID:446
  73. if "%1"=="59" call %0 setNLS 792 TR   857 EGA  TR
  74. if "%1"=="60" call %0 setNLS 826 EN   858 EGA  UK UK168.KL /ID:168
  75.  
  76. if "%1"=="61" call %0 setNLS 804 UK   848 EGA4 UR UR465.KL /ID:465
  77. if "%1"=="62" call %0 setNLS 804 UK   848 EGA4 UR
  78. if "%1"=="63" call %0 setNLS 804 TT 59234 EGA7 TT
  79. if "%1"=="64" call %0 setNLS   8 SQ   852 EGA  SQ SQ448.KL /ID:448
  80. if "%1"=="65" call %0 setNLS   8 SQ   852 EGA  SQ
  81. if "%1"=="66" call %0 setNLS 124 FR   858 EGA  CF CF445.KL /ID:445
  82. if "%1"=="67" call %0 setNLS 203 CS   852 EGA  CZ
  83. if "%1"=="68" call %0 setNLS --- EO   853 EGA  EO EO166.KL /ID:166
  84. if "%1"=="69" call %0 setNLS --- EO   853 EGA  EO
  85. if "%1"=="70" call %0 setNLS 250 FR   858 EGA  FR FR120.KL /ID:120
  86.  
  87. if "%1"=="71" call %0 setNLS 276 DE   858 EGA  GR GR453.KL /ID:453
  88. if "%1"=="72" call %0 setNLS 380 IT   858 EGA  IT IT142.KL /ID:142
  89. if "%1"=="73" call %0 setNLS 428 LV   775 EGA2 LV LV455.KL /ID:455
  90. if "%1"=="74" call %0 setNLS 440 LT   775 EGA2 LT LT211.KL /ID:211
  91. if "%1"=="75" call %0 setNLS 440 LT   775 EGA2 LT LT212.KL /ID:212
  92. if "%1"=="76" call %0 setNLS 440 LT   775 EGA2 LT LT456.KL /ID:456
  93. if "%1"=="77" call %0 setNLS 807 MK   872 EGA3 MK
  94. if "%1"=="78" call %0 setNLS 643 RU   808 EGA3 RU RU443.KL /ID:443
  95. if "%1"=="79" call %0 setNLS 891 SR   872 EGA3 SR
  96. if "%1"=="80" call %0 setNLS 891 SR   872 EGA3 SR SR450.KL /ID:450
  97.  
  98. if "%1"=="81" call %0 setNLS 756 FR   858 EGA  SF
  99. if "%1"=="82" call %0 setNLS 756 DE   858 EGA  SG
  100. if "%1"=="83" call %0 setNLS 826 GD   858 EGA  GA
  101. if "%1"=="84" call %0 setNLS 840 EN   858 EGA  LH
  102. if "%1"=="85" call %0 setNLS 840 EN   858 EGA  RH
  103.  
  104. goto end
  105.  
  106. :DoNLS
  107. set nlslabel=end
  108. for %%x in ( 80286 80386 ) do if "%cputype%"=="%%x" set nlslabel=loadkeyb
  109. if not "%6"=="" %fdosroot%\bin\KEYB /U
  110. cls
  111. if exist %fdosroot%\NLS\LOCALIZE.%3 set lang=%3
  112. set uniqueID=%2 
  113. rem Latin America has no codepage number; Japan has no CPI file
  114. if "%4"=="---" goto %nlslabel%
  115. if "%5"=="---" goto %nlslabel%
  116. if not exist %fdosroot%\bin\%5.CPI goto %nlslabel%
  117. %fdosroot%\bin\MODE CON CP PREP=((%4) %fdosroot%\bin\cpi\%5.CPI)
  118. %fdosroot%\bin\MODE CON CP SEL=%4
  119. goto %nlslabel%
  120.  
  121. :loadkeyb
  122. if "%6"=="" goto end
  123. set keybfile=KEYBOARD.SYS
  124. if not exist %fdosroot%\bin\%KEYBFILE% set keybfile=
  125. set kblayout=%6
  126. for %%x in ( %fdosroot%\bin\key\%7 ) do if exist %%x set keybfile=%7
  127. if "%keybfile%"=="" set keybfile=%kblayout%.KL
  128. if "%keybfile%"=="%7" shift
  129. set keybrest=%7 %8 %9
  130. %fdosroot%\bin\keyb %kblayout%,,%fdosroot%\bin\key\%keybfile% %keybrest%
  131. goto end
  132. :end
  133. set nlslabel=