By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,035 Members | 1,555 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,035 IT Pros & Developers. It's quick & easy.

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

P: 29
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?
Oct 6 '10 #1

✓ answered by weaknessforcats

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

Share this Question
Share on Google+
1 Reply


weaknessforcats
Expert Mod 5K+
P: 9,197
Can't you just execute the dir command by making a call to system()?
Oct 7 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.