Hello, DaniWeb,
I am writing a C++ program that would output all folders/files including the hidden ones in a directory.
I ask the user for dir address, and I use the following instructions to execute the job:
string cmd;
string dirAddr;
cin >> dirAddr;
cmd.insert(0, "dir /ah ");
cmd.insert(cmd.size(), dirAddr);
system(cmd.c_str());
I though this could be done with a simple command, but apparently this is not the case.
Any directions? Thanks!