Making my program look for a folder and if it exists, to list a word. (CMD)

This is a discussion on Making my program look for a folder and if it exists, to list a word. (CMD) within the C++ Programming forums, part of the General Programming Boards category; I have tried making a program that searches for a directory and then lists a word if it exists. I ...

  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    3

    Question Making my program look for a folder and if it exists, to list a word. (CMD)

    I have tried making a program that searches for a directory and then lists a word if it exists. I have been working on this for roughly 2 hours. I tried using different things in ShellExecute but none of the things I try seem to work.

    Can anyone help me with this?

    Thanks in advanced.

    (PS: This is for a command prompt program.)

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    You're going to have to be less vague than that. What did you try, what did it do, and how is that different from what you want to do?

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,484
    There's a FAQ entry on searching directories, and directory structures.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21