Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.51 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Windows xp: roll my own desktop tool to copy list of directory names
  2. for /F "usebackq" %i IN (`dir /b C:/backups/sites/24/01/2012`) DO makdir C:fabio_temptest%i
  3.        
  4. $dir = PROMPT('Type in the name of the directory containing the list of directories to clone:');
  5. $dir_dest = PROMPT('Type in the destination directory:');
  6.  
  7. FOREACH LIST_DIRNAMES($dir) AS $dirname DO
  8.     MKDIR CONCAT($dir_dest,$dirname)
  9. ENDFOREACH;
  10.        
  11. for /F "usebackq" %%i IN (`dir %1 /b`) DO mkdir %2%%i
  12.        
  13. mkdirs_from_list C:dir_to_list C:dir_dest