Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Batch file 使用bat文件列出文件夹和子文件夹中与特定名称匹配的所有文件_Batch File_Build Automation - Fatal编程技术网

Batch file 使用bat文件列出文件夹和子文件夹中与特定名称匹配的所有文件

Batch file 使用bat文件列出文件夹和子文件夹中与特定名称匹配的所有文件,batch-file,build-automation,Batch File,Build Automation,我已附加文件夹结构。我想找出所有从测试开始的dll,比如Test-A.dll等Test-*.dll。你怎么能用bat文件来做呢。你自己也提到过这个模式。试一试 dir/s测试-*.dll 说 dir/b/s测试-*.dll 将返回完整的路径名。您自己也提到了该模式。试一试 dir/s测试-*.dll 说 dir/b/s测试-*.dll 将返回完整的路径名。请尝试以下操作: dir /s X:\Test-A\Test-*.dll 试试这个: dir /s X:\Test-A\Test-*.dll

我已附加文件夹结构。我想找出所有从测试开始的dll,比如Test-A.dll等Test-*.dll。你怎么能用bat文件来做呢。

你自己也提到过这个模式。试一试

dir/s测试-*.dll

dir/b/s测试-*.dll


将返回完整的路径名。

您自己也提到了该模式。试一试

dir/s测试-*.dll

dir/b/s测试-*.dll

将返回完整的路径名。

请尝试以下操作:

dir /s X:\Test-A\Test-*.dll
试试这个:

dir /s X:\Test-A\Test-*.dll