![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-29 08:05 |
47,816 topics / 349,916 posts / today 0 new / 48,265 members |
| DOS批处理 & 脚本技术(批处理室) » How to copy all JPG files in all folders under drive D to folder 1 on drive C |
| Printable Version 2,189 / 6 |
| Floor1 mfdcxnf | Posted 2007-03-13 11:36 |
| 初级用户 Posts 74 Credits 155 | |
|
I've read many posts about copying, but I still can't find the answer I need. Since I'm not smart, please help me. I'm waiting online. Thank you.
|
|
| Floor2 namejm | Posted 2007-03-13 11:45 |
| 荣誉版主 Posts 1,737 Credits 5,226 From 成都 | |
|
```
@echo off :: The files copied later will overwrite the existing files with the same name for /f "delims=" %%i in ('dir /a-d /b /s d:\*.jpg') do copy /y "%%i" c:\1 pause ``` |
|
| Floor3 mfdcxnf | Posted 2007-03-13 11:45 |
| 初级用户 Posts 74 Credits 155 | |
|
Because I have a problem now. The system is damaged. I want to get all the pictures under the C drive out. I don't want to repair the system. Then I want to format C and reinstall it. Please help me think more, haha. Thanks
|
|
| Floor4 mfdcxnf | Posted 2007-03-13 11:50 |
| 初级用户 Posts 74 Credits 155 | |
|
Thanks, moderator! I've learned another trick, haha. I'll study hard in the future and try to think it through by myself before asking.
|
|
| Floor5 lxmxn | Posted 2007-03-13 11:56 |
| 版主 Posts 4,938 Credits 11,386 | |
|
|
|
| Floor6 hldcwsa | Posted 2007-03-13 12:00 |
| 初级用户 Posts 22 Credits 47 | |
| Floor7 mfdcxnf | Posted 2007-03-16 08:28 |
| 初级用户 Posts 74 Credits 155 | |
|
Thanks, really powerful, I tried it, it works great!
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |