使用批处理命令我想通过一个特定文件夹进行迭代,并检查文件是否存在于其他文件夹中仅按文件名,已存在已存在的已存在文件。 [英] Using Batch Command I Want To Iterate Through A Perticular Folder And Check That Files Exist In Other Folder By File Name Only, Apped Already Existing File If Exists.

查看:93
本文介绍了使用批处理命令我想通过一个特定文件夹进行迭代,并检查文件是否存在于其他文件夹中仅按文件名,已存在已存在的已存在文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用批处理命令我想遍历一个特定的文件夹并检查文件只存在于文件名的其他文件夹中,Apped已存在的文件(如果存在)。

我需要做的另一件事是在.txt文件上忽略此操作。





让一个文件夹:D:\ pdder1

让另一个文件夹是:D:\ folder2

Using Batch command i want to iterate through a perticular folder and check that files exist in other folder by file name only, Apped already existing file if exists.
One more thing i need to do is that ignore this operation on .txt files.


Let one folder is : D:\folder1
Let another folder is : D:\folder2

推荐答案

打开命令提示符并输入help for,并检查迭代文件的各种选项。键入help if查看 if 命令,以测试第二个目录中是否存在文件。
Open a command prompt and type "help for", and check the various options for iterating through files. Type "help if" to look at the if command, for testing if a file exists in the second directory.

这篇关于使用批处理命令我想通过一个特定文件夹进行迭代,并检查文件是否存在于其他文件夹中仅按文件名,已存在已存在的已存在文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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