Search found 2 matches

by Mark Heim
07 Aug 2012 08:32
Forum: DOS Batch Forum
Topic: what is wrong with that code? [SOLVED]
Replies: 18
Views: 10947

Re: what is wrong with that code?

Code: Select all

copy all.txt  c_list.txt
by Mark Heim
05 Aug 2012 10:41
Forum: DOS Batch Forum
Topic: how can i replace string to other string
Replies: 7
Views: 5602

Re: how can i replace string to other string

@echo off echo reza > test.txt copy test.txt test2.txt SETLOCAL=ENABLEDELAYEDEXPANSION for /f %%i in (test.txt) do ( echo %%i >> test.txt set foo=%%i if !foo!==reza set foo=reeza echo !foo! >> test.txt) echo type test.txt echo. type test.txt echo. sed "s/reza/reeza/g" test2.txt > test3.tx...