Created
September 18, 2022 11:33
-
-
Save BoQsc/1c1b0a6eab57d19ca60c833dc7e8f69a to your computer and use it in GitHub Desktop.
Split string in Batch
This file contains hidden or 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
@ECHO OFF | |
setlocal enabledelayedexpansion | |
set "_string=--User="C:/Your Friend/ asd/aaa /here"" | |
echo %_string% | |
for /f "tokens=1* delims==" %%a in ("%_string%") do ( | |
echo %%a | |
echo %%b | |
) | |
endlocal | |
PAUSE | |
EXIT /B |
Author
BoQsc
commented
Sep 19, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment