home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 18 REXX / 18-REXX.zip / change2.zip / c.inf (.txt) < prev    next >
OS/2 Help File  |  1996-08-30  |  6KB  |  166 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Fundamentals of c.cmd ΓòÉΓòÉΓòÉ
  3.  
  4. !!! The command line still will be used !!!
  5.  
  6. The REXX-batch file  c.CMD  permits in a easy manner to change in other 
  7. directory on the same or on another drive. 
  8.  
  9. If sombody does not like the name  c.CMD  he can rename it, for example in 
  10. cDrDir.CMD. 
  11. But I mean that in this case a single character for this procedure name is much 
  12. easier. 
  13.  
  14. c.CMD  can be used in a directory structure with up to 12 levels. I believe 
  15. that this is sufficient for nearly every real directory structure. 
  16.  
  17. If You type as the command line parameter of  c.cmd  a not existing drive or a 
  18. not existing directory (or You type them with a syntactic error) a 
  19. corresponding error message is shown on the screen. 
  20.  
  21. While runnung  c.CMD  creates up to 12 buffer files Fehl*.*, which must be 
  22. interim stored on a drive. Shortly before the end of running of  c.cmd  these 
  23. files will be erased by  c.cmd. 
  24.  
  25. You can define this drive for yourself. 
  26.  
  27. The beginning code lines of  c.CMD  are: 
  28.  
  29. /* c.cmd, a program                 */ 
  30. /*     to change drive and directory       */ 
  31. /*     in a very easy manner.           */ 
  32. "@ echo off" 
  33.  
  34.   Y="C"   /* Here type the drive letter on which  */ 
  35.       /* the buffer files of  c.cmd      */ 
  36.       /* will be interim stored        */ 
  37.       /* while  c.cmd  is running.       */ 
  38.  
  39.  
  40. In line Nr. 6  is written  Y="C". 
  41.  
  42. This means that the buffer files  Fehl*.*  will be interim stored on the drive 
  43. C. 
  44.  
  45. Who does not like to have interim storages in the startable partition -- in 
  46. most cases this is drive C  -- can use any logical drive for the interim 
  47. storage. 
  48. If You wont to interim store the buffer files on drive D You must replace in 
  49. line Nr. 6 the letter C by the letter D. 
  50.  
  51. Therefore the line Nr. 6  schould be 
  52.  
  53.                                              Y="D". 
  54.  
  55.  
  56. ΓòÉΓòÉΓòÉ 2. Examples to c.cmd ΓòÉΓòÉΓòÉ
  57.  
  58. 1.      You are in drive  C. 
  59.  
  60.         The command 
  61.                            c C:\OS2\MDOS  or  c OS2\MDOS 
  62.  
  63.         and pressing <Enter> changes without any comment 
  64.         in the directory  C:\OS2\MDOS. 
  65.  
  66.  
  67.  
  68.   2.    You are in the directory  C:\OS2\MDOS. 
  69.  
  70.         The command 
  71.                            c WINOS2\SYSTEM 
  72.  
  73.         and pressing <Enter> changes without any comment 
  74.         in the directory  C:\OS2\MDOS\WINOS2\SYSTEM. 
  75.  
  76.  
  77.  
  78.   3.    You are in the directory  C:\OS2\MDOS\WINOS2\SYSTEM. 
  79.  
  80.         The command 
  81.                            c D:\EMX\INCLUDE 
  82.  
  83.         and pressing <Enter> changes without any comment 
  84.         in the directory  D:\EMX\INCLUDE. 
  85.  
  86.  
  87.  
  88.   4.    You are in the directory  D:\EMX\INCLUDE. 
  89.  
  90.         The command 
  91.                            c 
  92.  
  93.         and pressing <Enter> changes without any comment 
  94.         in drive  D. 
  95.  
  96.  
  97.  
  98.   5.    You are on drive  C. 
  99.         In the root directory of drive  C 
  100.         exists a directory named  E  (only one character long). 
  101.  
  102.         The command 
  103.                            c E 
  104.  
  105.         and pressing <Enter> changes without any comment 
  106.         in the directory  C:\E. 
  107.  
  108.         By way of contrast the command 
  109.                                                 c E: 
  110.  
  111.         and pressing <Enter> changes without any comment 
  112.         in drive  E, if drive  E  does exist on this computer. 
  113.  
  114.         The necessity to add a colon to the name of the drive You wish to 
  115.         change on 
  116.         allows to distinguish between changing on another drive and changing 
  117.         in a directory with a one character name. 
  118.  
  119.         This is very important if You are in a root directory of a drive. 
  120.  
  121.  
  122.  
  123.   6.    You are in the directory  C:\OS2\MDOS\WINOS2\SYSTEM. 
  124.  
  125.         The command 
  126.                            c D:\EMX 
  127.  
  128.         and pressing <Enter> changes without any comment 
  129.         in the directory  D:\EMX. 
  130.  
  131.         If You wish to change in the root directory of drive  C, 
  132.         the command 
  133.                                 c C: 
  134.  
  135.         and pressing <Enter> must be done. 
  136.  
  137.         The command  C: (without the preceding character  c) and pressing 
  138.         <Enter> 
  139.         would change in the directory  C:\OS2\MDOS\WINOS2\SYSTEM  again ! 
  140.  
  141.  
  142.  
  143.   7.    You are in the directory  C:\OS2\MDOS\WINOS2\SYSTEM. 
  144.  
  145.         The command 
  146.                            c C:\OS2 
  147.  
  148.         and pressing <Enter> changes without any comment 
  149.         in the directory  C:\OS2. 
  150.  
  151.         (In this special case the well known command "cd C:\OS2" 
  152.         would have the same effect.) 
  153.  
  154.  
  155.  
  156.   8.    You are in drive  D. 
  157.  
  158.         The command (in error) 
  159.                                       c BIM  or  c D:\BIM 
  160.  
  161.         and pressing <Enter> shows on the screen the error message 
  162.  
  163.                 ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê
  164.                 ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê  A directory  BIMΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê
  165.                 ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêdoes not existΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê
  166.