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

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -