Wouldn't
do d in /a:d *
...
work as well? even if it will only save 2 keystrokes?
----- Original Message -----
From: JohnQSmith
To: CSGalloway@nc.rr.com
Sent: Tuesday, March 22, 2011 05:20 PM
Subject: RE: [Support-t-2442] Re: Copy directory tree without repeating directory name
Quote:
Originally Posted by David Marcus
Did you vote for it on the feedback forum?
Of course!
I even got bit in the buttocks yesterday with another example of why it is needed. I'm working on reorganizing some directories in preparation for documentation conversions. This BTM was to be run in a folder containing many documents each in its own folder. Needless to say... back to the drawing board.
Code:
@echo off
do d in /a:d *.*
md 1_Original
move /s "%d\*.*" 1_Original
move /s 1_Original "%d"
md "%d\2_Unstructured"
md "%d\3_Structured"
md "%d\4_Delivery"
md "%d\5_XML"
enddo