Adding Text the the End of a Line
Posted: Thu Oct 31, 2013 8:06 pm
Hello All,
Have a question, I have the following line in a config file and I need to add some text to the end of the line. Problem is that there are 2 areas in the line , one where there is a client name (that changes in each config file) and the second where there is a client id number (also changes in each config file).
Here is the line:
"-ExecutionPolicy ByPass L:\LRO\CLIENTNAME\prog\scripts\EtlDailyLoadSchedule.ps1 -clientid CLIENTID"
I need this to say :
"-ExecutionPolicy ByPass L:\LRO\CLIENTNAME\prog\scripts\EtlDailyLoadSchedule.ps1 -clientid CLIENTID" defer="Y"
Thanks for your help.
Avi
Have a question, I have the following line in a config file and I need to add some text to the end of the line. Problem is that there are 2 areas in the line , one where there is a client name (that changes in each config file) and the second where there is a client id number (also changes in each config file).
Here is the line:
"-ExecutionPolicy ByPass L:\LRO\CLIENTNAME\prog\scripts\EtlDailyLoadSchedule.ps1 -clientid CLIENTID"
I need this to say :
"-ExecutionPolicy ByPass L:\LRO\CLIENTNAME\prog\scripts\EtlDailyLoadSchedule.ps1 -clientid CLIENTID" defer="Y"
Thanks for your help.
Avi