Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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>%
 
PREVIOUS NEXT
Tagged: #batch #substring
ADD COMMENT
Topic
Name
2+3 =