Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Use following script:
- @echo off
- for /r "%CD%" %%f in (.) do (
- copy "Text.txt" "%%~ff" > nul
- )
- Credit: http://stackoverflow.com/a/1321539/1756941
- Edit:
- @echo off
- Setlocal EnableDelayedExpansion
- cls
- set currentDirectory=%CD%
- FOR /D %%g IN ("*") DO (
- Pushd %CD%\%%g
- FOR /D %%f IN ("*") DO (
- copy "%currentDirectory%\Text.txt" "%%~ff"
- )
- Popd
- )
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement