DOS script to replace line feeds : Looking to remove the incorrect carriage returns "CRLF" in a file but retain the correct ones. I think I have some logic that will work but can't quite nail the script.

Where ^p represents a “carriage return”

Replace Yes^p with yestemp
Replace No^p with notemp
Replace Inactive^p with inactivetemp
Replace ^p with “” (ie null)
Replace Yestemp with Yes^p          
Replace notempwith No^p           
Replace inactivetemp with Inactive^p
