How to? Dir specific file search patterns with spaces in the pathnames?

Oct 18, 2009
266
10
Using DIR I need to display files matching 2 different patterns, including the full path in the spec, but the path has spaces, e.g.:

Display only these files:

F:\Last Week\temp\HFLIST.xlsx
F:\Last Week\temp\HFLIST.txt
F:\Last Week\temp\05-07-2019_Inventory.xlsx
F:\Last Week\temp\05-07-2019_Invoice.txt

They're all in one folder. The examples in the Help all have no spaces in the path name.
 
Oct 18, 2009
266
10
If figured it out

Code:
Set src_path=F:\Last Week\temp

dir "%src_path\HFLIST.*;*05-07*.*"

(In the example, the * before 05 will pull up all files that contain 05-07 somewhere.)