home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s045 / 4.img / SWITCH.BA_ / SWITCH.bin
Encoding:
Text File  |  1993-12-21  |  2.4 KB  |  59 lines

  1. @echo off
  2. ipldrive
  3. for %%n in ( \ibmbio.com \ibmdos.com \config.sys \autoexec.bat ) do if not exist %%n goto _fail
  4. if exist \config.ps5 if exist \autoexec.ps5 goto _ps55
  5. if exist \config.ps2 if exist \autoexec.ps2 goto _uspc
  6. goto _fail
  7. :_uspc
  8.         for %%n in ( \config.ps5 \autoexec.ps5 ) do if exist %%n goto _fail
  9.         IF %1. == MSGOFF. GOTO _NOMSG1
  10.         chev > nul
  11.         if not errorlevel 1 goto US_MSG
  12.                 setcode5
  13.                 echo.
  14.                 echo [æb¢≥]: á╣₧ê¿gÖ╬£│öΩ(æ₧ÉN¿gÖ╬Ä|PS/2á╣₧êôRî═)üCíÿîñª└ÿε¥╫£âüB
  15.                 echo. 
  16.                 echo û≡Å╡ÿrÜíÄA¿gÖ╬ôRéoér/éQá╣₧êüiô└î─á╣₧ê)üB
  17.                 echo.
  18.                 32705250
  19.                 if errorlevel 2 if not errorlevel 3 echo ÿAÄS¥úîJéRéQéVéOöVîH¥╫¥IÜíÄAüBü@íÿÜ╢ÅuéRéQéVéO£eû½üB
  20.                 if errorlevel 3 if not errorlevel 4 echo ÿAÄS¥úîJéTéQéTéOöVîH¥╫¥IÜíÄAüBü@íÿÜ╢ÅuéTéQéTéO£eû½üB
  21.                 if errorlevel 2 echo.
  22.                 choice /n "ô╨¿gÖ╬Å╡ÿrÜíÄA¢┴ (Y/N) ? "
  23.                 if errorlevel 2 goto _exit
  24.                 goto _NOMSG1
  25.         :US_MSG
  26.                 echo.
  27.                 echo [Warning]: Do not turn off during switching.
  28.                 echo.
  29.                 echo Switching the system into PS/2 mode (English mode).
  30.                 echo.
  31.                 32705250
  32.                 if errorlevel 2 if not errorlevel 3 echo The 3270PC program is running. Log off the 3270PC session(s).
  33.                 if errorlevel 3 if not errorlevel 4 echo The 5250PC program is running. Log off the 5250PC session(s).
  34.                 if errorlevel 2 echo.
  35.                 choice /n "Are you sure to switch the system (Y/N) ? "
  36.                 if errorlevel 2 goto _exit
  37. :_NOMSG1
  38.                 hardboot ps52 ps22
  39.                 goto _fail
  40. :_ps55
  41.         for %%n in ( \config.ps2 \autoexec.ps2 ) do if exist %%n goto _fail
  42.         IF %1. == MSGOFF. GOTO _NOMSG2
  43.         echo.
  44.         echo [Warning]: Do not turn off during switching.
  45.         echo.
  46.         echo Switching the system into PS/55 mode (Chinese mode).
  47.         echo.
  48.         choice /n "Are you sure to switch the system (Y/N) ? "
  49.         if errorlevel 2 goto _exit
  50. :_NOMSG2
  51.                 hardboot ps22 ps52
  52. :_fail
  53.         32705250
  54.         if errorlevel 1 echo Cannot switch to PS/2 mode - Required file(s) missing.
  55.         if not errorlevel 1 echo Cannot switch to PS/55 mode - Required file(s) missing.
  56. :_exit
  57.         cls
  58.         backcode
  59.