Search found 2 matches

by msswamy
02 Feb 2021 10:33
Forum: DOS Batch Forum
Topic: Batch file edit text file
Replies: 20
Views: 50915

Re: Batch file edit text file

Thanks for your solution and it solved problem with exclamation mark ('!'). Regarding my new line issue, below is my sample text file. [Components.Section] Element_1 !Element_2 Element_3 Below are the string variables, set "replace=[Components.Section]" set "replaced=[Components.Section]\nMyElement_...
by msswamy
01 Feb 2021 21:15
Forum: DOS Batch Forum
Topic: Batch file edit text file
Replies: 20
Views: 50915

Re: Batch file edit text file

Hey Penpen,

This solution really good and useful, but i have 2 problems while dealing with my file.
1. My actual file having special characters(!), it is removed in final result file.
2. How can i insert new line in replaced string.
Can you please help me here.