Page 1 of 1

Insert Before and Quotations in Command Line

Posted: Tue Feb 28, 2006 2:01 am
by MarioSpanicciati
I am attempting to insert the a line before a line "</DataSources>" using AFR from the command line in a ms-dos batch file. The issue that I am having is that I want to insert on the line before "</DataSources>" and that my insert needs to keep quotations around certain components. I have tried placing two quotation marks in place of each quotation mark, but to no avail.

Below is the syntax that I am using, any recommendations would be greatly appreciated. I just discovered this program today and it seems great!

afr.exe -execute:replace -searchfor "</DataSources>" -replacewith " <DataSource name=""Test"" mode=""On"" dbProvider=""SQL"" connection=""Data Source=localhost;Initial Catalog=Test;User ID=sa;Password=Os@baAdmin1;"" />\r\n</DataSources>" -path D:\Temp\DataCenter -mask *.xml;*.bat