Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. Use following script:
  2.  
  3. @echo off
  4. for /r "%CD%" %%f in (.) do (
  5. copy "Text.txt" "%%~ff" > nul
  6. )
  7. Credit: http://stackoverflow.com/a/1321539/1756941
  8.  
  9. Edit:
  10.  
  11. @echo off
  12. Setlocal EnableDelayedExpansion
  13. cls
  14. set currentDirectory=%CD%
  15. FOR /D %%g IN ("*") DO (
  16. Pushd %CD%\%%g
  17. FOR /D %%f IN ("*") DO (
  18. copy "%currentDirectory%\Text.txt" "%%~ff"
  19. )
  20. Popd
  21. )
  22. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement