I'm trying to split a string in a batch file using a string (rather than a character) as the delimiter.
The string has the format:
string1 by string2.txt
The delimiter is by
(yes, space, the word 'by', followed by space). The output I want is:
string1
string2
So, basically, split the string into 2 parts by the delimiter by
and remove the suffix from the second string. How can I do this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…