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?