|
Answer» I can't figure out the delimeter to set it as only a space without the tab.
I've tried:
Code: [Select]for /F "tokens=1-4 delims= " %%Z in ('COMMAND') do set output=%%Z
But I am always getting the delimeter of a tab and space.A tab is a special kind of space. Delims= really means space and tab. What command are you using, that outputs tabs, which would give a different result if you could ignore the tabs?
command | more
will strip the tabs out of command's output (In a FOR line don't forget to escape the | with a caret)
|