递归运行命令并检查它是否存在
在 Windows Env 上,我试图找到一种方法来递归检查目录树中的所有文件,以查看它们的文件名/大小是否与另一个目录中的文件列表匹配,如果它们确实存在于目录中,则它运行命令在文件中找到
伪代码:
Loop{
If(RecursivelyFindFiles() = FileInFileListingInResources()) {
DoCommand(cmd1 -D -R -N %FoundFile C:\resources\%Filename)
}
}
我知道我想要什么,只是不知道如何在 Windows 环境上执行此操作
On a Windows Env, I'm trying to find a way to recursively check all files in a dirtree to see if they filename/size match a list of files in another dir, if they do exist in the dir, then it runs a command on the file found
Psudocode:
Loop{
If(RecursivelyFindFiles() = FileInFileListingInResources()) {
DoCommand(cmd1 -D -R -N %FoundFile C:\resources\%Filename)
}
}
I know what i want, just dont know how to do it on a Windows Env
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

发布评论
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
假设
%root%
是搜索树的开始,并且..\folder\
包含原型文件。Assumes
%root%
is start of search tree, and..\folder\
contains the prototype files.