Thread: finding names of files in a directory(dos)

  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    113

    finding names of files in a directory(dos)

    How can I do something like this(working in c++ under dos)
    Code:
    for(all files in a given directory)
    {
      //Some operation on file
    }
    That is I want to know names of all file in a particular directory.

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Opening files with UNICODE file names
    By decohk in forum Linux Programming
    Replies: 2
    Last Post: 11-09-2006, 05:25 AM
  2. Finding User names.....
    By twomers in forum C++ Programming
    Replies: 2
    Last Post: 12-05-2005, 04:46 AM
  3. Replies: 1
    Last Post: 07-24-2002, 06:33 AM
  4. reinserting htm files into chm help files
    By verb in forum Windows Programming
    Replies: 0
    Last Post: 02-15-2002, 09:35 AM
  5. Names of Text Files
    By tim545666 in forum C++ Programming
    Replies: 5
    Last Post: 02-10-2002, 11:59 AM