Skip to content

Instantly share code, notes, and snippets.

@geunho
Created April 22, 2019 00:06
Show Gist options
  • Save geunho/390be22c9c925578fb8dd62a2febd5d9 to your computer and use it in GitHub Desktop.
Save geunho/390be22c9c925578fb8dd62a2febd5d9 to your computer and use it in GitHub Desktop.
REM test A - 001
REM test B - 002
REM get rid of last 6 characters
SET title_a=test A - 001
SET title_b=test B - 002
SET first=%title_a:~0,-6%
SET second=%title_b:~0,-6%
echo %first%
REM test A
echo %second%
REM test B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment