Search found 2 matches

by juannfox
15 Sep 2017 13:09
Forum: DOS Batch Forum
Topic: Batch File to edit specific lines of Text
Replies: 2
Views: 4145

Re: Batch File to edit specific lines of Text

You can't add in the middle of the file but you can write the new content to a temporary file and afterwards replace the original file. @echo off &setlocal set "file=test.txt" set /p "extension=extension=" set /p "posicion=posicion=" setlocal EnableDelayedExpansion...
by juannfox
13 Sep 2017 09:34
Forum: DOS Batch Forum
Topic: Batch File to edit specific lines of Text
Replies: 2
Views: 4145

Batch File to edit specific lines of Text

Hi guys, so I've been trying to make the software installation at work more automated and I wonder: Can I make a batch file to edit two specific lines in a text file? The file consists of this lines: extension= posicion= queue=1800 SITIO=AvayaCM Next to both "extension=" and "posicion...