Replace string in a file

S

sakurai_db

I have a file SQLcounts_temp.cfg like in the following, I would like to replace "testinginst01" to "testinginst02", how can I do that in windows batch cmd shell ? Thanks

"\MSSQL$testinginst01:Databases(*)\Log File(s) Size (KB)"
"\MSSQL$testinginst01:Databases(*)\Log File(s) Used Size (KB)"
"\MSSQL$testinginst01:Databases(*)\Log Flush Wait Time"
"\MSSQL$testinginst01:Databases(*)\Log Flush Waits/sec"
"\MSSQL$testinginst01:Databases(*)\Log Flush Write Time (ms)"
"\MSSQL$testinginst01:Databases(*)\Log Flushes/sec"
"\MSSQL$testinginst01:Databases(*)\Percent Log Used"
"\MSSQL$testinginst01:Databases(*)\Tracked transactions/sec"

Continue reading...
 
Back
Top Bottom