batch script substring from a string code example
Example: batch substring
REM # | EXAMPLE
set "StringA=Some random string this is"
echo %StringA:~5,6%
REM # | SYNTAX
REM # | %<variable-name>:~<substring-start-index>,<substring-length>%
REM # | EXAMPLE
set "StringA=Some random string this is"
echo %StringA:~5,6%
REM # | SYNTAX
REM # | %<variable-name>:~<substring-start-index>,<substring-length>%