English 中文(简体)
我如何将文件从一个文件夹复制到另一个文件夹,同时排除某些文件类型?
原标题:how do i copy files from 1 folder to another while excluding certain file types?

我正在使用Windows Vista。

我有一个包含许多文件和子文件夹的文件夹。

我需要将那个文件夹的内容复制到另一个文件夹中,但不包括任何 .txt 后缀的文件。

我该怎么做?

问题回答

你可以使用 xcopy。 然後提供 /EXCLUDE:file1[+file2][+file3]... 選項來排除 .txt 檔案。

在Windows Vista及更高版本中,您可以使用Robocopy工具,这是一种更强大的复制命令,可以让您执行自己的任务。

窗口XP可从以下网址下载:here

我建议您运行 robocopy /? 来查看选项,并查看 /XF。





相关问题
How does Vistalizer work

How does Vistalizer manage to override the language limit in Windows Vista Home edition. Which api s does it use to allow installation of Multiple language packages.

Ericsson f3507g WWAN (3G Broadband) and AT commands

I have a lenovo x200t tablet with WWAN built into it. I m trying to connect to the internet using AT commands and a C# program which I am making so that the program can connect to the net and upload ...

Correct place to install demostration projects?

With the new Windows 7 restrictions (well, new to Windows Vista anyways), we can no longer install demo projects to %ProgramFilesFolder%OurApplicationdemo since restricted users will not be able to ...

How Can I Check To See If the User Set His Clock Back?

In my desktop program, I want to check that to see if the user has set his clock back. To do so, I compare the timestamp of certain Operating System files to the current computer date. If any are ...

Vista/Win7 Listview "View Slider"

In Vista and Windows 7 almost any time the system uses a standard Listview (ie: Explorer Windows) it s accompanied by a little split button that shows a slider when the split is clicked that allows ...

热门标签