Ms-dos to extract string : I have a string "[0.020s][info][class,load] opened: C:\Program Files\Java\jdk-9.0.1\lib\modules".

I'd like to extract only the “C:\Program Files\Java\jdk-9.0.1” part of the string by using MS-DOS.

How can I write the code? Using position is not the choice. Thanks