
Untitled
By: a guest on
May 5th, 2012 | syntax:
None | size: 0.51 KB | hits: 11 | expires: Never
Windows xp: roll my own desktop tool to copy list of directory names
for /F "usebackq" %i IN (`dir /b C:/backups/sites/24/01/2012`) DO makdir C:fabio_temptest%i
$dir = PROMPT('Type in the name of the directory containing the list of directories to clone:');
$dir_dest = PROMPT('Type in the destination directory:');
FOREACH LIST_DIRNAMES($dir) AS $dirname DO
MKDIR CONCAT($dir_dest,$dirname)
ENDFOREACH;
for /F "usebackq" %%i IN (`dir %1 /b`) DO mkdir %2%%i
mkdirs_from_list C:dir_to_list C:dir_dest