title: Strip drive letter
body: <p>By using the command from a folder in D: drive </p>
  
  <pre><code>for /f "delims="  %%d in ('cd') do set pathdrv=%%d
  
  echo %pathdrv%
  </code></pre>
  
  <p>I get "d:\some folder".I want to write batch commands to create autorun file in the root of the drive. Please help me to strip the drive letter "d:" so the output is "\some folder" and what extra change do i do to strip "\".</p>