How to copy files using a batch file? [duplicate]
问题 This question already has answers here : How do I copy files using Windows Batch? (6 answers) Closed 2 years ago . I need to create a batch file to copy certain files (e.g., 19_1_White.jpg) to a folder within the directory. How can I do this? 回答1: 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