Last active
December 11, 2015 04:48
-
-
Save davidruhmann/4547616 to your computer and use it in GitHub Desktop.
[Batch] Remove the last token form a delimited string array (Tab used as example)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set "Var=%Var%@" | |
for /f "delims=" %%A in ('echo(%Var: =^&echo(%') do call set "Var2=%%Var: %%A=%%" | |
set "Var=%Var2%" | |
:: David Ruhmann | |
:: http://www.computerhope.com/forum/index.php/topic,135076.msg869228.html#msg869228 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment