Search code examples
batch-filedos

MS DOS replace : to - in string of bat file


There are a simple question to do:

set str=800:801

i need that ":" symbol to be replaced to "-"


Solution

  • You can try this : SET str=%str::=-%