title: Remove the first 3 characters in var in batch file?
body: <p>How do I do this? I tried:</p>
  
  <pre><code>set /p var=""
  set var=%var:~3%
  echo %var%
  </code></pre>
  
  <p>For example, if I type "Hello World" it should echo "lo World".</p>
  
  <p>Sorry I was too vague. That code isn't really the code but this is:</p>
  
  <pre><code>@echo off
  setlocal EnableDelayedExpansion
  set /p file=""
  set cnt=0
  for /F "delims=" %%j in (%file%.txt) do (
    set /A cnt+=1
    set line!cnt!=%%j
  )
  set cde=0
  :code
  set /a cde+=1
  set line=!line%cde%!
  if %line:~0,9% == err echo.%line:~3%
  goto code
  </code></pre>
  
  <p>I was just trying to make it shorter well still showing the error.</p>