hi there
i want to copy "c:\file.txt" in all of folders in drive D:\
how to do that?
i want to copy it in all of folders. i found a command. but it dont copy the file in folders that have space in their name
how to copy a file in all of directory and subdirectories?
Moderator: DosItHelp
-
- Posts: 84
- Joined: 08 Sep 2010 10:25
- Location: Iran,Kashan
- Contact:
how to copy a file in all of directory and subdirectories?
Last edited by Mohammad_Dos on 03 Apr 2012 12:48, edited 1 time in total.
Re: how to copy a file in all of directory and subdirectorie
Try that:
Regards
aGerman
Code: Select all
for /f "delims=" %%a in ('dir /ad /b /s D:\') do copy "c:\file.txt" "%%a\"
Regards
aGerman