Hi
Can u tell me what I must change in that script for search also in subfolder?
@echo off
chcp 1252
set "nomefile=%temp%\FILES.TXT"
set "file_mask=*.flac
if not exist "%~1"\* exit /b 1
pushd "%~1" || exit /b 1
>"%nomefile%" (
for /f "delims=;" %%X in (' dir /a:-d /b %file_mask% ') do (
set/p"=%%~nX"<nul
echo(
)
)
popd
notepad "%nomefile%"
if exist "%nomefile%" del "%nomefile%"
tHANK
serch all flac in folder and subfolder? (wrong script)
Moderator: DosItHelp
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: serch all flac in folder and subfolder? (wrong script)
I don't know what your folder structure looks like so it's impossible to say for certain, but it should be as straightforward as changing
to
Code: Select all
dir /a:-d /b %file_mask%
Code: Select all
dir /a:-d /b /s %file_mask%
Re: serch all flac in folder and subfolder? (wrong script)
is perfect...thanks