Writing a batch file to amend .ini
Posted: 01 Feb 2016 08:43
Hi All,
First time poster. I hope you might be able to help me on this please? I need to write a batch to edit an ini file on a remote CPU running XP embedded.
I need to edit an ini file on one line but leave the other lines intact with no changes.
I need to edit line 2
SCHEME=3|00|0|0|
and leave the rest of the text
PrintPause=00
SCHEME=3|10|0|0|
TL_IP=xxxx|TL_PORT=xxxx|
ULOG_IP=xxxx|ULOG_PORT=xxxx|
UDP_PORT=xxxx|
TimeFromServer|TIME_PORT=xxxx|
xxxx_COMPORT=COM5|
xxxx_COMPORT=COM3|
DeclineReInitTran|
VolumeControl|
GPS_COMPORT=COM6|
MediaUDP_IP=xxxxxxxx|
MediaUDP_Port=xxxxxx|
Is anyone able to help me please
First time poster. I hope you might be able to help me on this please? I need to write a batch to edit an ini file on a remote CPU running XP embedded.
I need to edit an ini file on one line but leave the other lines intact with no changes.
I need to edit line 2
SCHEME=3|00|0|0|
and leave the rest of the text
PrintPause=00
SCHEME=3|10|0|0|
TL_IP=xxxx|TL_PORT=xxxx|
ULOG_IP=xxxx|ULOG_PORT=xxxx|
UDP_PORT=xxxx|
TimeFromServer|TIME_PORT=xxxx|
xxxx_COMPORT=COM5|
xxxx_COMPORT=COM3|
DeclineReInitTran|
VolumeControl|
GPS_COMPORT=COM6|
MediaUDP_IP=xxxxxxxx|
MediaUDP_Port=xxxxxx|
Is anyone able to help me please