如何从命令提示符下将特定文件从一个文件夹复制到另一个文件夹 [英] How to copy specific files from one folder to another from the command prompt

查看:219
本文介绍了如何从命令提示符下将特定文件从一个文件夹复制到另一个文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个很大的图片文件夹(数千个),而且我有一长串文件(按确切的文件名),我需要使用Windows命令通过 cmd复制到另一个文件夹中仅提示。我使用Windows 7。

I have a large folder of pictures (thousands), and I have a long list of files, by exact file name, that I need to copy to another folder using Windows commands, through cmd prompt only. I use Windows 7.

我想知道是否可以通过名称从该文件夹中选择几个特定文件,然后将它们复制到另一个文件夹中。终端,而不需要单独复制它们?。

I want to know if there is a way I can select several specific files from this folder, by name, and copy them to another folder, using the terminal, without copying them individually?.

我知道我可以使用 xcopy 进行复制,但是我想复制特定类型的文件只说'jpeg','bmp'等。

I know I can do it with xcopy but i want to copy specific types of files only say 'jpeg','bmp',etc.

推荐答案

尝试使用

xcopy /d /y /s "\Your Image Folder\*.jpg" "C:\Users\%username%\Desktop\Master Image Folder\" 

也可以简单地使用

copy *.<extension> <other folder>

例如:

copy C:\Users\desktop\*.jpg D:\backup

将从路径 C:\Users\desktop\复制所有扩展名为 .jpg 的文件 D:\backup\

这篇关于如何从命令提示符下将特定文件从一个文件夹复制到另一个文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆