Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using wildcards as command line parameters 1

Status
Not open for further replies.

joeGrammar

Programmer
Jun 4, 2001
162
CA
If I wanted to modify every file in a directory with a C++ program, instead of entering a fixed number of command line parameters, is it possible to use wildcards?

ie

instead of

cppprog somefile someotherfile etc..
cppprog *.h *.doc * etc...
 
Yes... with CFileFind you can do that. I can send you some code on how i find all the files in a directory. Post your email.

Matt
 
thanks!

joey__collins@hotmail.com

please, no fan mail
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top