serch all flac in folder and subfolder? (wrong script)
Posted: 12 Jun 2021 16:34
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
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