Batch File to edit specific lines of Text
Posted: 13 Sep 2017 09:34
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=" I have to manually add a number specific to that X computer. My idea is to make a batch file that prompts the user to enter the number and then automatically edits and saves the file.
For Example, If I enter 3438 in the promt, the file after that would consist of:
extension=3438
posicion=3438
queue=1800
SITIO=AvayaCM
Any clues? I preciate the help!
Cheers
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=" I have to manually add a number specific to that X computer. My idea is to make a batch file that prompts the user to enter the number and then automatically edits and saves the file.
For Example, If I enter 3438 in the promt, the file after that would consist of:
extension=3438
posicion=3438
queue=1800
SITIO=AvayaCM
Any clues? I preciate the help!
Cheers