Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi
Please help me out in this!
I'm making a batch file to automate the Trigger Settings.
There is a file ibmp.properties having a parameter "Clients.jar" containing all the jar files entries as its value(comma separated).
I want to add a new value to this parameter in addition to the old values.
I'm doing the following for this :
echo Client.Jars=ssacustom.jar >> %SERVERROOT%\bin\ibpm.properties
But this is creating a new parameter-value pair (Client.Jars=ssacustom.jar ) at the end of the file, rather then appending the value to the existing parameter.
Please help me in this. Tell me where I'm wrong and how can I rectify it.

Hi
@echo off
rem Create XECHO.COM
echo N XECHO.COM >~x.txt
echo A 100 >>~x.txt
echo MOV AH,2 >>~x.txt
echo MOV SI,82 >>~x.txt
echo MOV,DL,[SI] >>~x.txt
echo CMP DL,D >>~x.txt
echo JZ 113 >>~x.txt
echo MOV AH,2 >>~x.txt
echo INT 21 >>~x.txt
echo INC SI >>~x.txt
echo JMP 105 >>~x.txt
echo MOV AH,4C >>~x.txt
echo INT 21 >>~x.txt
echo. >>~x.txt
echo R CX >>~x.txt
echo 17 >>~x.txt
echo W >>~x.txt
echo Q >>~x.txt
debug <~x.txt > nul
del ~x.txt
echo XECHO.com created----------
Run this batch file to create XEcho.com.
Then will then echo a line without a Carriage Return plus LineFeed at the end of the line.
Use like this.xecho 12345 > test.txt
xecho 6789 >> test.txt
test.txt now contains 123456789
The next echo command will append to the end 123456789 so to force a newline use echo. >> test.txt. Then use echo or xecho command as required.

use an appropriate tool for the job. If you have GNUawk/perl/vbscript/etc...its easier...
in GNUawk
[code]
awk '/Client.Jars/{print $0",ssacustom.jar";next}{print}' "file"
[/code]

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |