How to add all my files from existing folder/subfolders?

T

trant

Sorry this seems like it should be really easy but I just can't seem to
figure it out:

I have a large collection of existing c/h files which I'd like to include in
a new Visual C project using my .NET 2008 IDE.

In the Solution Explorer I can't seem to figure out how to get all the files
from my folders and sub folders in one easy step - without having to manually
select all c/h files from every folder separately.

I know it can happen because somehow I did it before... I got to a point
where the folders appeared in solution explorer as faded white folder icons,
and then I can right click them and say Include to Project and tell it to
grab everything from it and its subfolders.

Unfortunately that project file is gone and I need to recreate it again and
cannot for the life of me figure out how I did that...

any help?
 
C

Carl Daniel [VC++ MVP]

trant said:
Sorry this seems like it should be really easy but I just can't seem
to figure it out:

I have a large collection of existing c/h files which I'd like to
include in a new Visual C project using my .NET 2008 IDE.

In the Solution Explorer I can't seem to figure out how to get all
the files from my folders and sub folders in one easy step - without
having to manually select all c/h files from every folder separately.

I know it can happen because somehow I did it before... I got to a
point where the folders appeared in solution explorer as faded white
folder icons, and then I can right click them and say Include to
Project and tell it to grab everything from it and its subfolders.

Unfortunately that project file is gone and I need to recreate it
again and cannot for the life of me figure out how I did that...

any help?

Fom the VS2008 menu -

File | New | Project from Existing Code...

Might be what you recall doing before.

Once you've got a project, you can do Add|Exiting Item and add multiple
files from one folder at a time, but I'm not sure if you can add files from
multiple folders (or a hierarchy of folders) at once using this technique.

-cd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top