PDA

View Full Version : find by extension in C


ubik
11-04-2005, 09:46 PM
Hello, Good Day to you.

I'm here because i just recently started to learn how to program in C , not c++.
I am trying to write a DOS application that searches the harddrive for any files of a particular file extension

I'm trying to have it run and firstly prompt for a partition to scan, then be able to type a file extension and have it come up with the results of all the files found with that file extension and the folder locations in which they lie in.
can anyone help me? thanks.

aman
11-04-2005, 10:26 PM
What do you mean by DOS? Are you using an old DOS compiler or are you just confusing a Windows console app with DOS?

What compiler and OS are you using?

ubik
11-05-2005, 01:24 AM
by DOS i mean i want the program to be able to run in DOS, 16bit i suppose?. i am using Microsoft Visual C++ 6.0 compiler

aman
11-05-2005, 02:59 AM
Not gonna happen. VC6 compiles 32bit windows code. The best you can do with it is write console apps.

You'll need to get an old compiler for 16bit DOS coding such as Borland's Turbo C... but why? Noone uses DOS anymore. There's DOS compilers and tutorials around the web, try Google.
Google TC (http://www.google.com/search?client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial_s&hl=en&q=turbo+C&btnG=Google+Search)