Insert Before and Quotations in Command Line

General discussions about Advanced Find and Replace
Post Reply
MarioSpanicciati
Posts: 1
Joined: Tue Feb 28, 2006 1:54 am

Insert Before and Quotations in Command Line

Post by MarioSpanicciati » Tue Feb 28, 2006 2:01 am

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

Thanks,
Mario

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests