About copying file 04-08-2014, 03:30 PM
#1
I want to copy all .txt files from "C:\" to "D:\" for example (include copying files from "Documents and Settings", "WINDOWS", etc). How can I do that?
| About copying file filter_list | |
for /r %x in (*.txt) do copy "%x" D:\targetDir\ /Y(04-08-2014, 03:58 PM)chmod Wrote: This is fairly simple to do and could have been answered straight away with a simple google search:
Code:for /r %x in (*.txt) do copy "%x" D:\targetDir\ /Y
. And I want to know where is "C:\...\" in the code
xcopy "c:\folder a\folder b\my folder\*.*" "c:\*.*" /s /e /ccopy C:\*\*.txt D:\(04-11-2014, 09:40 PM)w0lf Wrote: I think you can do something likeI've tried it and it didn't work. I think you can't write "\*\" as all folders
90% sure this would work but @chmod's looks more legitCode:copy C:\*\*.txt D:\
(04-12-2014, 01:16 AM)pijero1stjudnt Wrote:scratch what I said before, I think all you need to do for C:\ is C:\*.txt(04-11-2014, 09:40 PM)w0lf Wrote: I think you can do something likeI've tried it and it didn't work. I think you can't write "\*\" as all folders
90% sure this would work but @chmod's looks more legitCode:copy C:\*\*.txt D:\