How can I replace every characters in a txt file for another one using Windows Batch Scripting? -
i have test.txt lot of characters. however, need replace of . /. how can this? tried using follow code:
@echo off setlocal enabledelayedexpansion set "sourcedir=c:\users\home\desktop" set "destdir=c:\users\home\desktop" set "filename=%sourcedir%\test.txt" set "outfile=%destdir%\outfile.txt" ( /f "usebackq delims=" %%a in ("%filename%") ( set "line=%%a" set "line=!line:.=/!" echo !line! ) )>"%outfile%" goto :eof
anyone can me, please?
Comments
Post a Comment