Current location - Quotes Website - Personality signature - Batch adds a carriage return before the specified character.
Batch adds a carriage return before the specified character.
I don't know your actual document/situation, only based on the sample/explanation in the question.

Copy and paste it into Notepad, save it as xx.bat, choose ANSI as the encoding, and run @echo? with the file to be processed. leave

Rem? Add a carriage return line break before the specified string in the txt text file.

Settings? # = Any? Problems and suggestions. Settings? @ = WX & amp; Settings? $ = Q & ampset/az=0x53b7e0b4

Title? %#%? +%$%%$%/%@%? %z%

cd? /d? " %~dp0 "

Settings? " file=yourfile.txt "

Settings? " word=ed2k://"

(echo; Text =WSH. StdIn.ReadAll

Echo; Echo? replace^(text? WSH。 Arguments^(0^),? vbCrLf? ^&; ? vbCrLf? ^&; ? WSH。 Arguments^(0^)^)

)& gt" %tmp%\v.v "

Type? " %file%"|cscript? Norogo? -e:vbscript? " %tmp%\v.v "? " %word% "

Echo; %#%? +%$%%$%/%@%? %z%

discontinue

export