home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!rutgers!ub!acsu.buffalo.edu!millard
- From: millard@acsu.buffalo.edu (Peter G. Millard)
- Newsgroups: comp.os.msdos.programmer
- Subject: Need help reading directory structures?
- Message-ID: <Bszpyt.D5H@acsu.buffalo.edu>
- Date: 14 Aug 92 20:23:16 GMT
- Sender: nntp@acsu.buffalo.edu
- Organization: UB
- Lines: 24
- Nntp-Posting-Host: autarch.acsu.buffalo.edu
-
- I was wondering what is the easiest way to check for and see
- if input is a directory or file (is this possible via interrups or
- something like them?)
-
- For example, at a prompt someone can type in either a filename
- or a directory (to search). I need to distinguish between the two.
- (ie. if they type in a filename, load the file...if it's a directory,
- jump to another subroutine to search the path w/ specific file specs and
- show results in window,etc...)The problem I have is I don't know how
- to ask the drive if the input is a file or a dir..
-
- Is there an easy way to do this?
-
- Any replys can either be e-mail (if you don't want to waste bandwidth) or post
- (if you do :)
-
- Thanx in Advance.
- -peter
-
- --
- ******************************************************************************
- Peter G. Millard * INTERNET: v057n5um@ubvms.cc.buffalo.edu
- SUNY @ Buffalo * : millard@acsu.buffalo.edu
- *****************************************************************************
-