Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
325 views
in Technique[技术] by (71.8m points)

Finding files using batch script with multiple wildcards in path

I have need to regularly search a large and changing folder for specific files in sub folders.

Ex: "C:some_foldera_file_value1_value2_some_more_stuff.zipsomething_value1_value2_something.pdf"

I can't seem to grasp the concept of how to burrow down using the nested for loop method i have found before.

This is what i have right now:

set J=1234
set P=alpha
for d/ %%D in (...Test_Folder*%P%_*) do for %%F in (%%~fD%J%*.zipsomethingstatic_*.pdf) do echo %%~fF

Can someone tell me what how to correctly resolve the wildcard issue in the file path?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...