home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / SWITCH2.ZIP / SWITCH.DOC < prev   
Text File  |  1990-01-22  |  2KB  |  45 lines

  1. 10/19/89 Darien Mann (GENIE D.MANN4)
  2.  
  3. Mytree and switch provide an equivalent function to the Norton
  4. Utilities Norton Change Directory. The Presentation Manager File System
  5. creates complex directory trees which require much typing of
  6. pathnames when working from a command prompt. Since NCD only works for
  7. real mode, I had to provide a solution for protected mode.
  8.  
  9. Mytree produces a listing of directories to standard out, each with a
  10. full path name on a newline to facilitate later reading with fgets().
  11. Use this program, redirecting the output to the root directory - 
  12.  
  13. mytree > c:\tree.txt
  14.  
  15. The switch program will reference this tree.txt for faster searching of
  16. matching subdirectories.
  17.  
  18. For switch, the full directory name must be typed. Once a match is
  19. found in tree.txt, the full pathname is supplied, the current directory
  20. is changed, and DosExecPgm is called to provide a command prompt in the
  21. new directory. DosExecPgm is used because I don't know how to issue a
  22. change directory command to the original command prompt, or session,
  23. which started the switch program. Each call of CMD.EXE uses about 30K
  24. of RAM. To return to the previous directory, type exit.
  25.  
  26. As directory trees change, mytree will have to be run again to create
  27. an updated directory listing.
  28.  
  29. REVISIONS:
  30.  
  31. 10/19/89 
  32. added searching for partial directory names
  33. added bypass if the match is the current directory
  34. Will continue searching for another match. If none is found,
  35. will exit with no change.
  36. 10/21/89
  37. added DosGetMachineMode to allow binding of the program.
  38. Now works in DOS_MODE or OS2_MODE!
  39. 1/22/90
  40. created make files and definition files.
  41. added NEWFILES statement to definition files for compatibility with
  42. long file names under OS/2 1.2 high performance file system.
  43. filename arrays are now 256 bytes.
  44. included source and .exe to findfile
  45.