title: batch script to set a variable with the current path location
body: <p>How can I set a variable with the current location? For instance, if I get in <code>c:\test</code> and want to set the variable to <code>test</code> and if I get inside <code>c:\test\test2</code> the variable will be set to <code>test2</code>.</p>
  <p>I'm thinking about using a <code>for</code> to get inside a lot of folders and check if some file exists, if the correct file exist I want to set the current folder to a variable so I can copy the path and copy the folder.</p>
  <p>The main problem deals with copying the rest of the files is the same folder as the .inf file.</p>