2011-12-20 4 views
0

Можно создать дубликат:
How do I copy files using Windows Batch?Как скопировать файлы с помощью пакетного файла?

Привет мне нужно создать пакетный файл для копирования определенных файлов, например, 19_1_White.jpg в папку в директории?

+0

Я не знаю, что попробовать, почему я спрашиваю! – PD24

+0

Вы пытались выполнить поиск в googling для «файлов периодического копирования Windows»? Здесь также много вопросов, задающих одно и то же. – Polynomial

ответ

8
XCOPY F:\*.* G:\ /C /S /D /Y /I 

XCOPY allows for copying of files, directories, and sub directories. 
F:\*.* is our source location 
G:\ is our destination location 
/C tells XCOPY to ignore errors, and finish what can be done 
/S tells XCOPY to copy everything including directories and 
subdirectories 
/D tells XCOPY to only copy source files that are newer than the 
destination files (big time saver on the process) 
/Y tells XCOPY to overwrite files without asking for confirmation 
/I tells XCOPY to automatically create new directories on the 
destination, if new directories were created in source. 
Смежные вопросы