PD2*_*D24 1 windows copy batch-file
我需要创建一个批处理文件来将某些文件(例如,19_1_White.jpg)复制到目录中的文件夹中.我怎样才能做到这一点?
小智 9
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.
Run Code Online (Sandbox Code Playgroud)
您需要使用命令 XCOPY 例如 XCOPY A.jpg C:\Folder\A.jpg
查看https://support.microsoft.com/en-us/help/289483/switches-that-you-can-use-with-xcopy-and-xcopy32-commands了解您可能想要使用的任何其他开关也。
| 归档时间: |
|
| 查看次数: |
50431 次 |
| 最近记录: |