I want to write a batch file that can split words within a string. for example, I have a string "Hello-World". I just want to echo out any characters before the "-". so when I echo out, it would just say Hello.
any help would be appreciated.
Thanks in advance