home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / lan / go10 / readme < prev   
Encoding:
Text File  |  1989-05-29  |  1.5 KB  |  39 lines

  1. The OS/2 CMD file, G.CMD, accepts as its single argument a partial directory
  2. path name.  It then attempts to find an existing path that contains
  3. the partial name and changes the current directory (CD) of your
  4. OS/2 command processor to the found path.
  5.  
  6. The solution is a little bit of a kludge since it must get around
  7. OS/2's implementation of current directory (CD) and processes:
  8.  
  9.    - the current directory is a process specific variable
  10.  
  11.    - when you run a program from the command line, the program
  12.      is run in its own process
  13.  
  14.    - if the program changes the current directory, this change will
  15.      not be seen by the command processor after the termination of
  16.      the program.
  17.  
  18. To bypass this "feature/limitation", G consists of an OS/2 command
  19. file that runs GO.EXE  .  GO.EXE finds the directory that matches the
  20. partial string you give it and then creates the file \xx@go@xx.cmd
  21. which contains the appropriate CD command.  When GO.EXE ends, the
  22. G.CMD file calls the created \xx@go@xx.cmd file (which does the needed
  23. CD command).  Finally G.CMD deletes the created command file.
  24.  
  25. The source for GO.EXE contains a couple of lines from a file finding
  26. utility by Ray Duncan.  The bulk of the program (for better or for
  27. worse) consist of my modifications.
  28.  
  29. You may rename G.CMD to any command file name that suits you (be careful
  30. using GO.CMD - your search path must then find GO.CMD before GO.EXE).
  31.  
  32. Do not, however, rename GO.EXE without altering G.CMD accordingly.
  33.  
  34.  
  35. cheers,
  36. Jeffrey Stone
  37. Menlo Park, CA.
  38.  
  39.