I need to parse the% PATH% list in a .BAT script, but I'm not very lucky with paths containing spaces.
for %%a in (%PATH%) do @echo %%a
The above analyzes are for spaces (by default), but I need to parse in half-columns. I try to use this, but it causes me an error:
for /f "tokens=* delims=;" %%a in (%PATH%) do @echo %%a
The result is one line: "The system cannot find the file C: \ Windows \ system32."
I am sure that I am missing something very simple, but any help would be greatly appreciated. TY!
source
share