home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / msdos / programm / 8541 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  1.3 KB

  1. Path: sparky!uunet!stanford.edu!rutgers!ub!acsu.buffalo.edu!millard
  2. From: millard@acsu.buffalo.edu (Peter G. Millard)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Need help reading directory structures?
  5. Message-ID: <Bszpyt.D5H@acsu.buffalo.edu>
  6. Date: 14 Aug 92 20:23:16 GMT
  7. Sender: nntp@acsu.buffalo.edu
  8. Organization: UB
  9. Lines: 24
  10. Nntp-Posting-Host: autarch.acsu.buffalo.edu
  11.  
  12. I was wondering what is the easiest way to check for and see
  13. if input is a directory or file (is this possible via interrups or
  14. something like them?)
  15.  
  16. For example, at a prompt someone can type in either a filename
  17. or a directory (to search). I need to distinguish between the two.
  18. (ie. if they type in a filename, load the file...if it's a directory,
  19. jump to another subroutine to search the path w/ specific file specs and 
  20. show results in window,etc...)The problem I have is I don't know how
  21. to ask the drive if the input is a file or a dir..
  22.  
  23. Is there an easy way to do this?
  24.  
  25. Any replys can either be e-mail (if you don't want to waste bandwidth) or post
  26. (if you do :)
  27.  
  28. Thanx in Advance.
  29. -peter
  30.  
  31. -- 
  32. ******************************************************************************
  33.     Peter G. Millard  *  INTERNET: v057n5um@ubvms.cc.buffalo.edu           
  34.      SUNY @ Buffalo    *          : millard@acsu.buffalo.edu
  35. *****************************************************************************
  36.