Article View: comp.os.msdos.programmer
Article #908Need help reading directory structures?
From: Peter G. Millard
Date: Fri, 14 Aug 1992 20:23
Date: Fri, 14 Aug 1992 20:23
24 lines
1404 bytes
1404 bytes
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 *****************************************************************************
Technical Details
Message-ID:
<Bszpyt.D5H@acsu.buffalo.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!rutgers!ub!acsu.buffalo.edu!millardShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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