Thread: Locating file in a directory in windows 7

  1. #1
    Registered User
    Join Date
    Mar 2012
    Posts
    1

    Locating file in a directory in windows 7

    I want to write a program that will look in a specific directory, search if any .zip file exist, then locate any file in that directory then return out a file name from the program.

    This is for my senior design project fro a database that will be looking into the specific FTP directory in my computer for zip files. The program will be called from a batch file script that will need a full file name in order to unzip any and all file from the receiving directory.

    The batch will be doing the main scripting of unzipping the file then inserting the information into a MySQL database.

    I have written a script that will work for a specific .zip file that will remain constant. So i need the c++ program to return a variable file name to keep handling more than just one file name.

    If you already have code that will help, this will be good, but im looking more for specific classes that handle files.

    Thank you for your time.

  2. #2
    - - - - - - - - oogabooga's Avatar
    Join Date
    Jan 2008
    Posts
    2,808
    Post the batch file.
    The cost of software maintenance increases with the square of the programmer's creativity. - Robert D. Bliss

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 17
    Last Post: 12-09-2011, 12:55 PM
  2. Access Windows directory with OPENFILENAME in Windows mobile
    By nikhilesh1987 in forum Windows Programming
    Replies: 2
    Last Post: 05-31-2011, 02:49 AM
  3. windows.h no such file or directory
    By FingerPrint in forum Tech Board
    Replies: 11
    Last Post: 08-26-2006, 09:51 PM
  4. Replies: 2
    Last Post: 09-27-2003, 11:57 AM
  5. Locating file.
    By Shogun in forum C Programming
    Replies: 1
    Last Post: 06-27-2003, 11:59 AM