Link to home
Start Free TrialLog in
Avatar of Baber Amin
Baber AminFlag for Canada

asked on

modifying parameter file using command line

Hi,

Is there a way to modify a parameter file's parameter using command line? e.g. to add text to a parameter like below:

parameter=val1;val2;val3;

now to add new value as below

parameter=valnew;val1;val2;val3;
Avatar of NVIT
NVIT
Flag of United States of America image

set parameter=val1;val2;val3
echo %parameter%
set parameter=valnew;%parameter%
echo %parameter%

Open in new window

Avatar of Baber Amin

ASKER

keep in mind file has many other parameters and I want to change  only one

keep in mind file has many other parameters and I want to change  only one
If you give examples, it would be easier to provide help.
e.g.

parameter1=val1;val2;val3;
parameter2=abc
parameter3=xyz
I presume that's the existing, before values.
What's the new, after values?
Where are the new value coming from... another file?
Existing
=======
parameter1=val1;val2;val3;
parameter2=abc
parameter3=xyz


After
====
parameter1=val1;val2;val3;val4;
parameter2=abc
parameter3=xyz


Not from file. From anywhere.
ASKER CERTIFIED SOLUTION
Avatar of NVIT
NVIT
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks.
Is it DOS command prompt code or Windows Powershell?
DOS