Property File Change

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
naraen87
Posts: 17
Joined: 21 Dec 2017 06:41

Property File Change

#1 Post by naraen87 » 21 Dec 2017 07:01

Can anyone please help me on this to modify a property file

I want to modify value in the property file through command line.

In the followig property file I want to update the value as follows

Update RealexURL URL as

Code: Select all

RealexURL=https://194.36.216.227/amerck/RealexServlet.srl
Add new property in ExtranetRoles.properties as below:

Code: Select all

MostUsedCountry=GB:GB,AE:AE,HK:HK,IN:IN,SG:SG,BR:BR
The above MostUsedCountry needs to be added after TC.SecurityRoles

Add another new property in ExtranetRoles.properties as below

Code: Select all

PRIIPSRegulatoryMarket=UK:UK,EU:EU,SP:SP,SW:SW
The above property needs to be added at the EOF

Add new roles(append) COA:COA,ALW:ALW in Portal.Advisor

Remove available roles CTM,NIB:NIB,TOP:TOP in Portal.Customer

This is my ExtranetRoles.properties file

Code: Select all

## Portal.Group=Security Role:Extranet Role
Portal.Advisor=MAS:MAS,SRM:SRM,SIV:SIV,ADN:ADN,IFA:IFA,ACC:ACC,BSR:BSR,TRD:TRD,VOC:VOC,VFC:VFC,VFA:VFA,BDD:BDD,EFA:EFA,EAC:EAC,DDM:DDM,PFM:PFM,PDA:PDA,PAM:PAM
Portal.Customer=CUS:CUS,CTU:CTU,CTM:CTM,NIB:NIB,TOP:TOP,TRP:TRP,AMR:AMR,FSS:FSS,OOW:OOW,DIA:DIA,DIC:DIC,TOD:TOD,SDI:SDI,DIB:DIB,NRW:NRW,ARW:ARW,RRI:RRI,CRI:CRI,CLP:CLP,CRW:CRW,DCL:DCL,TCR:TCR,ARP:ARP,RRP:RRP,CRP:CRP,COC:COC,PIC:PIC,PIA:PIA,SAS:SAS,BDI:BDI,RBL:RBL,ARA:ARA,MTA:MTA,ARI:ARI,CHA:CHA,GPV:GPV,TSH:TSH,UMG:UMG,CAD:CAD,MCA:MCA,ABD:ABD,BDD:BDD,MFF:MFF,GSV:GSV
TC.SecurityRoles=MAS,SRM,SIV,ADN,IFA,ACC,EFA,EAC,CUS,DDM,CTU,CTM,PFM,PDA,PAM
Extranet_URL=https://stgr2-sso.oldmutualinternational.com/oam/server/logout
ExtranetENV_URL=https://uat2-wealthinteractive.oldmutualinternational.com
RealexURL=https://pay.sandbox.realexpayments.com/pay

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: Property File Change

#2 Post by Squashman » 21 Dec 2017 08:48

Looks just like your SuperUser question and your two StackOverFlow questions.
And answered by Mofi on StackOverFlow

Post Reply