thedarkavenger
June 6th, 2002, 03:24 AM
Dear members,,,
i want to know how to write a program which searches the harddrives for a file specified by the user and takes different actions if the file is found or not. It should also print out if it fount the file or not. In other words it should simulate the "dir/s" command in dos.Could somebody tell me how to do it using the inbuilt functions of Turbo C++ or Borland C compiler?
I tried using the find_first, find_next functions but they only searched the directory in which the program was running. I would be really grateful if somebody would send me the program or atleast give me a snippet.
Thanks a lot.
i want to know how to write a program which searches the harddrives for a file specified by the user and takes different actions if the file is found or not. It should also print out if it fount the file or not. In other words it should simulate the "dir/s" command in dos.Could somebody tell me how to do it using the inbuilt functions of Turbo C++ or Borland C compiler?
I tried using the find_first, find_next functions but they only searched the directory in which the program was running. I would be really grateful if somebody would send me the program or atleast give me a snippet.
Thanks a lot.