home *** CD-ROM | disk | FTP | other *** search
/ PC Plus 34 / SHORTIES / GEMDOSC.BAT < prev   
Encoding:
DOS Batch File  |  1989-01-01  |  1.9 KB  |  74 lines

  1. echo off
  2. cls
  3. if %1@==GemDoS@ goto s
  4. shift
  5. C:\GEMAPPS\GEMDOS GemDoS %0 %1 %2 %3 %4 %5 %6 %7 %8 %9
  6. goto ab
  7.  
  8. ** GEMDOS.BAT  Ver 1.6  28/FEB/1989  (c) M. Greenfield 1989 **
  9.  
  10. :s
  11. attrib -r gemdos.bat
  12. attrib +r %0.bat
  13. del gemdos.bat
  14. attrib -r %0.bat
  15. cls
  16.  
  17. if %2@==@ goto q
  18. if %2@==?@ goto h
  19. if %2@==/@ goto h
  20. shift
  21. shift
  22. if exist %0.bat goto b
  23. if %0==type more<%1
  24. if not %0==type %0 %1 %2 %3 %4 %5 %6 %7 %8 %9
  25. pause
  26. goto q
  27.  
  28. :b
  29. command /c %0 %1 %2 %3 %4 %5 %6 %7 %8 %9
  30. pause
  31. goto q
  32.  
  33. :h
  34. cls
  35. echo  GEMDOS  -  A user friendly alternative to GEM's « Enter DOS Commands »
  36. echo  ~~~~~~~
  37. echo  1. Double clicking on the %0.BAT icon will cause a
  38. echo     DOS Shell into its directory.  The icon can also be dragged using
  39. echo     the mouse (i.e. copied) into any other directory and drive.
  40. echo     Double clicking on the new copy will cause DOS Shell into the chosen
  41. echo     directory,  followed by the subsequent removal of the new copy.
  42. echo.
  43. echo  2. A DOS command may be entered from within the GEM environment by typing
  44. echo     into the OPEN APPLICATION window,  which appears after double clicking
  45. echo     on the GEMDOS icon.  Any complex command may be typed,  inclusive of
  46. echo     switches & arguments (but not: "| < > "),  e.g. TYPE {filename.ext}.
  47. echo     (If the command is a batch file which is not in the directory shelled
  48. echo     into, control will be returned to GEM immediately upon completetion.)
  49. echo.
  50. echo  NOTE: COMMAND.COM, ATTRIB.EXE, FIND.EXE & MORE.COM must be on the search path.
  51. echo        ANSI.SYS must be installed (refer to DOS manual).
  52. echo.
  53. goto q
  54.  
  55. :ab
  56. echo.
  57. echo  This file must be placed in its specified directory, given in line 5.
  58. echo  Correct, or edit line 5 of this program (shown below).
  59. echo.
  60. type GEMDOS.BAT|find "GEMDOS GemDoS"
  61. echo A
  62. pause
  63. goto f
  64.  
  65. :q
  66. echo     To  return to GEM, type:  EXIT    For help, type:  GEMDOS ?
  67. if "%ε%"=="1" goto f
  68. set ε=1
  69. echo A
  70. command
  71. set ε=
  72.  
  73. :f
  74.