@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\
|PDF-XChange Viewer Command Line for File -> Export -> Export as Image||2||375|
|Task showing running status in Task Scheduler||5||60|
|regedit.exe REG ADD problems||2||36|
|Delete out x file types from multiple network directories using batch script||8||53|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
15 Experts available now in Live!