Last active
June 23, 2023 00:03
-
-
Save jcefoli/0f28e6a8dcaac4d8bbd7 to your computer and use it in GitHub Desktop.
Batch File User Input: Convert Spaces to %20
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 | |
REM This snippet will take an input string with spaces and replace them with %20 | |
SET /p input=Input string: | |
SETLOCAL ENABLEDELAYEDEXPANSION | |
SET input=!input: =%%20! | |
ECHO. | |
ECHO %input% | |
PAUSE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment