I am trying to remove any data from a file after the entry [TEST]
E.g.
The text file is:
Random Text 1
Random Text 2
Random Text 3
[TEST] Random Text 4
Random Text 5
Random Text 6 ....
After I run the batch file I just want it to remove any data after the string [TEST] so the new file will look like:
Random Text 1
Random Text 2
Random Text 3
Any help is greatly appreciated.