Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. @echo off
  2. setlocal EnableDelayedExpansion
  3.  
  4. FOR /D %%G IN (fold*) DO (
  5. MKDIR "%cd%%%G/proj"
  6. CALL mover.bat %%G proj
  7. )
  8.  
  9. @echo off
  10. setlocal EnableDelayedExpansion
  11.  
  12. FOR /R %cd%%1 %%h IN (*.txt) DO (
  13. MOVE %%h %1/%2
  14. )
  15.  
  16. #!/bin/bash
  17. shopt -s dotglob
  18. find * -prune -type d | while read d; do
  19. mkdir "$d"/proj
  20. mv "$d"/*.txt "$d/proj"
  21. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement