- Oct
- 364
- 17
I'm trying to accomplish the following and ffind /s can't do it because it only searches for subfolders of the current folder. I'm looking for a filename ending with a date, and each day the file will be in a different subfolder 3 levels down from \Downloads.
%_cwd = F:\THR
Without changing the current folder, check for the existence of zcs_YYYYMMDD.txt in
F:\THR\Downloads\{year}\{month}\{day}
I could extract the date, parse it, convert month # to 06 Jun 2017, but I'd like something simpler.
When using /s, ffind should have an option to set the starting folder for the search.
Also, the help says there are options /s+3, -- start searching 3 levels down from %_cwd, and /s2 -- only search two sublevels. Is there a way to combine those two, i.e., "start searching 3 levels down from \Downloads (i.e., the {day} folders) and only search one level" ? If not, combining those is an additional suggestion.
%_cwd = F:\THR
Without changing the current folder, check for the existence of zcs_YYYYMMDD.txt in
F:\THR\Downloads\{year}\{month}\{day}
I could extract the date, parse it, convert month # to 06 Jun 2017, but I'd like something simpler.
When using /s, ffind should have an option to set the starting folder for the search.
Also, the help says there are options /s+3, -- start searching 3 levels down from %_cwd, and /s2 -- only search two sublevels. Is there a way to combine those two, i.e., "start searching 3 levels down from \Downloads (i.e., the {day} folders) and only search one level" ? If not, combining those is an additional suggestion.