Your question, your audience. Choose who sees your identity—and your question—with question security.
@echo off setlocal rem This script strips out any empty lines terminated with a CR or a CR/LF rem usage is process_feeds.bat "C:\inputfilename.txt" "C:\outputfilepath" rem it also makes a backup of the input files if [%2] NEQ  (call :process %1 %2) else ( for /f "tokens=*" %%a in ('dir /b /a-d "%source%\*.txt"') do call :process "%source%\%%a" "%dest%" ) goto :eof :process set input=%~1 set output=%~2\%~nx1 echo Working on %input% findstr /B /I /R "[!-z]" "%input%" > "%output%" REM remove the REM from the next line to have it remove the 'source' files. move "%input%" C:\backup\
Join the community of 500,000 technology professionals and ask your questions.