title: Windows Batch - separate directory and filename from full file path string
body: <p>I'd like to separate both a filename and a directory string from inside a full file path variable so i can refer to each separately later in a batch script.</p>
  
  <p>Input Variable: SET "FULL=C:\test\file.txt"</p>
  
  <p>Wanted Output:</p>
  
  <p>FILE: file.txt</p>
  
  <p>PATH: C:\test\</p>
  
  <p>Currently the for loop &amp; syntax is not making a whole lot of sense to me (in this batch scripting language) which is making it harder for me to find a working solution online...</p>