I want to find the .seq
files from src
folder and its sub-directories. I'm trying with below approach but it doesn't create a devtest.txt
file. Any help please.
For /R %%A In (src\*.seq)Do @Echo drafting.rep:%%~nxA >> devtest.txt
A FOR loop will find all of the files and run the ECHO command on them.
@SET "SEARCHDIR=C:\src"
@SET "LOGFILE=%USERPROFILE%\devtest.txt"
@IF EXIST "%LOGFILE%" (@DEL "%LOGFILE%")
@FOR /F "delims=" %%A IN ('DIR /S /B "%SEARCHDIR%\*.seq"') DO (
@Echo drafting.rep:%%~nxA >>"%LOGFILE%"
)
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments