S
surferdude2
Guest
Consider using the freeware 'XXCOPY'
(http://www.xxcopy.com/xcpymain.htm) to do that job.
I created a structure similar to what you described and did a quick
batch file. It seems to do what you want:
Code:
--------------------
xxcopy /clone /yy F:\projects\project???\source\*.* F:\projectsxxcopy
xxcopy /clone /yy F:\projectsxxcopy F:\projects\
RD F:\projectsxxcopy /s /q
--------------------
Use quotes if you have embedded spaces in your path.
It simply copies all project folders to an intermediate folder and then
clones that folder back to the original, thus deleting all files and
folders except those named projects and source.
xxcopy is a great time saver for situations like yours.
(http://www.xxcopy.com/xcpymain.htm) to do that job.
I created a structure similar to what you described and did a quick
batch file. It seems to do what you want:
Code:
--------------------
xxcopy /clone /yy F:\projects\project???\source\*.* F:\projectsxxcopy
xxcopy /clone /yy F:\projectsxxcopy F:\projects\
RD F:\projectsxxcopy /s /q
--------------------
Use quotes if you have embedded spaces in your path.
It simply copies all project folders to an intermediate folder and then
clones that folder back to the original, thus deleting all files and
folders except those named projects and source.
xxcopy is a great time saver for situations like yours.