title: what does it mean batch set variable=%variable:~1%
body: <p>Can anyone explain what is <code>:~1%</code> in the below statement in a batch file? I assigned the value of <code>%variable</code> to servername and tried <code>echo %variable</code>. I get the same server name as output. Can anyone explain how the statement below works?</p>
  
  <pre><code>set variable=%variable:~1%
  </code></pre>