home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / C / GET_IT.ZIP / READ.GET < prev   
Encoding:
Text File  |  1988-02-10  |  1.1 KB  |  19 lines

  1.  
  2.    I had to change a few things to get the program to work and also added a 
  3. few things. First, the author's path seems to be incorrect. His path is 
  4. E:;C:\bin;C:\;  I think it should be E:\;C:\bin\;C:\;  I modeled this after my 
  5. path on my computer which is C:\;B:\;A:\  The GET program works with my setup 
  6. and I couldn't get it to work if I modeled my path after his. Second, I added 
  7. 2 error check routines in the do_switch function, one after the system(drive) 
  8. call and the other after the chdir(path) call. Third, I commented out 2 
  9. strcat() calls, one in the search_file() function, the other in the 
  10. *open_data_file() function. They added a (:) and a (\) which turned out to be 
  11. one too many of each when copied to their arrays. Fourth, I added another call 
  12. to system(). My call was: system("DIR");  It lists the directory of the 
  13. subdirectory GET takes you to. 
  14.    The file GET.DAT is the sample file I used to feed the get.exe program.
  15. I created the subdirectories on drive C and, as an example, I typed
  16. A>get text  or   A>get c_source    In each case GET took me to those subdir-
  17. ectories; I ended up in C: in that subdirectory.
  18.  
  19.