Sign in to follow this  

Generating \include directory

This topic is 4845 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I can't figure this out for the life of me. I have a project with a pretty complex directory structure, say [...]/projectsrc/[...]. I want to generate an include directory ([...]/projectsrc/include) at the beginning of every build on a windows machine. I've spent quite a bit of time trying to figure out how to do it using windows batch files but I can't seem to get it to work. XCOPY keeps telling me about a cyclic copy (can't I just tell it not to recurse once it detects a cycle?) Also is there a way to get XCOPY to copy all the files into /include without generating a directory structure? This is driving me nuts, seems like a very common thing but there is no info on it online. Also while we're at it, can someone suggest a good bash script to do the same thing (doing it on linux is my next project). Thanks.

Share this post


Link to post
Share on other sites
In windows (at least XP...), something like:

> for %f in (*.h) do copy %f [insert_your_new_path_here]%f


Use

> help for


To get more information (including how to make it recursive).

John B

Share this post


Link to post
Share on other sites

This topic is 4845 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this