home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 6 File / 06-File.zip / go_v241.zip / GO.DOC < prev    next >
Text File  |  1994-12-16  |  4KB  |  82 lines

  1. ------------ GO v2.41 CWD utility for DOS and OS/2 by Adam McKee ------------
  2.  
  3. GO is a small, relatively simple program intended to relieve you of the task
  4. of typing really long pathnames when you want to change your CWD.
  5. GO is not intended to replace the CD command.  Instead, it should be used
  6. only when it will provide more convenience than the CD command.  I think
  7. you will find that it is often more convenient to use GO.
  8.  
  9. Instead of giving an in-depth discussion of GO's operation, I will simply
  10. give you a few examples.  You should be able to learn how to effectively use
  11. GO from these examples.  The examples will take the form:
  12.  
  13. DESTINATION: C:\GAMES   [DESTINATION: desired path]
  14. D:\> GO C./GAM          [X:\> command given to interpreter]
  15.  
  16. DESTINATION: c:\os2\system
  17. C:\> go os2.sys
  18.  
  19. DESTINATION: c:\os2\system
  20. D:\> go c.os.sys
  21.  
  22. DESTINATION: C:\bc
  23. C:\UTILS\BC\TVISION\INCLUDE\> go ..
  24.  
  25. DESTINATION: C:\UTILS\BC\INCLUDE
  26. D:\> go c.ut.bc.inc
  27.  
  28. You should get the idea by now.  Remember that GO is not psychic.  If there
  29. is more than one match for the pattern you specify, GO will not be able to
  30. determine which path you want, and it may choose the wrong one.  If you find
  31. that GO chooses the wrong directory, try giving it a little more text to work
  32. with (another 1-2 characters will usually do the trick).
  33.  
  34. -- DOS Setup: ---------------------------------------------------------------
  35.  
  36. Just copy GO.EXE to a directory that is in your path.
  37.  
  38. -- OS/2 Setup: --------------------------------------------------------------
  39.  
  40. First, copy GO.CMD and GO_MAIN.EXE to a directory that is in your path.
  41. Then, you must edit GO.CMD.  Here is what it looks like initially:
  42.  
  43. @C:\OS2\APPS\GO_MAIN.EXE C:\OS2\APPS\GO.CMD %1 %2 %3 %4 %5 %6 %7 %8 %9
  44.  
  45. << if you have placed GO.CMD and GO_MAIN.EXE in C:\OS2\APPS, you actually
  46.    don't need to edit the file at all, and you can stop reading >>
  47.  
  48. GO.CMD calls GO_MAIN.EXE (using its fully qualified path), and gives ITS OWN
  49. PATH as the first argument.  Any arguments given by you come afterward.
  50. To edit this file to work with your particular setup, just change the paths.
  51. For example, if you have placed GO.CMD and GO_MAIN.EXE in C:\OS2, the GO.CMD
  52. file should look like this:
  53.  
  54. @C:\OS2\GO_MAIN.EXE C:\OS2\GO.CMD %1 %2 %3 %4 %5 %6 %7 %8 %9
  55.  
  56. You may ask: why is GO.CMD needed?  Whenever a process that is launched from
  57. the shell exits, the shell's environment is restored to its state prior to
  58. the process's execution.  Since the CWD is in the environment, any changes
  59. made to this variable by a process will simply be undone when the process
  60. (i.e. GO) exits.  So, GO.CMD is required to serve as a 'go-between':
  61. GO_MAIN.EXE places a 'CD' command in GO.CMD, so that it can be run by the
  62. shell after GO_MAIN.EXE exits.  GO.CMD gives GO_MAIN.EXE its fully qualified
  63. path so that GO_MAIN.EXE can access GO.CMD and make changes to it as required.
  64.  
  65. ------------------------------------------------------------------------------
  66.  
  67. For more information, run GO with no arguments.
  68.  
  69. ------------------------------------------------------------------------------
  70.  
  71. GO is FREEWARE.  As such, you are not obliged to make any payment to me in
  72. exchange for the use of it, and it is not `crippled' in any way whatsoever.
  73. However, if you find GO useful, and you would like to send me $5 CAN to
  74. reward my efforts, please do so!  Any suggestions you have for improving
  75. GO will also be appreciated.  Here are my physical/virtual addresses:
  76.  
  77.     Adam McKee            Internet: amm130@cs.usask.ca
  78.     2335 Lansdowne Ave.
  79.     Saskatoon, Sask.
  80.     S7J 1G8
  81.     CANADA
  82.