home *** CD-ROM | disk | FTP | other *** search
- The OS/2 CMD file, G.CMD, accepts as its single argument a partial directory
- path name. It then attempts to find an existing path that contains
- the partial name and changes the current directory (CD) of your
- OS/2 command processor to the found path.
-
- The solution is a little bit of a kludge since it must get around
- OS/2's implementation of current directory (CD) and processes:
-
- - the current directory is a process specific variable
-
- - when you run a program from the command line, the program
- is run in its own process
-
- - if the program changes the current directory, this change will
- not be seen by the command processor after the termination of
- the program.
-
- To bypass this "feature/limitation", G consists of an OS/2 command
- file that runs GO.EXE . GO.EXE finds the directory that matches the
- partial string you give it and then creates the file \xx@go@xx.cmd
- which contains the appropriate CD command. When GO.EXE ends, the
- G.CMD file calls the created \xx@go@xx.cmd file (which does the needed
- CD command). Finally G.CMD deletes the created command file.
-
- The source for GO.EXE contains a couple of lines from a file finding
- utility by Ray Duncan. The bulk of the program (for better or for
- worse) consist of my modifications.
-
- You may rename G.CMD to any command file name that suits you (be careful
- using GO.CMD - your search path must then find GO.CMD before GO.EXE).
-
- Do not, however, rename GO.EXE without altering G.CMD accordingly.
-
-
- cheers,
- Jeffrey Stone
- Menlo Park, CA.
-
-