How do I program a C:/> prompt to find files in C++?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Alex T
    New Member
    • Oct 2010
    • 29

    How do I program a C:/> prompt to find files in C++?

    I'm making a program which is supposed to create a C:/> prompt which is used to find a file, and give info about it, but I'm having trouble programming the C:/> prompt. How do I make it show the contents of a folder?

    Is there a special class/functions for this? I have no idea, I have getting the actual info for one file in a specific folder, but to find a file using a C:/> prompt is the difficult part for me.

    Anyone care to help?
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Can't you just execute the dir command by making a call to system()?

    Comment

    Working...