title: batch file to move and rename folder to a relative path
body: <p>I have the following batch file in Windows 7 to be executed by a context menu shortcut. My aim is to move and rename a quote folder containing subfolders and files to a different path and rename it with the project number inserted when prompted.</p>
  
  <pre><code>for %%Q in (.) do set quotenumber=%%~nQ
  for %%Y in (.\..) do set year=%%~nY
  for %%C in (.\..\..\..) do set client=%%~nC
  set /P projectnumber="Enter Project number&gt;"
  move "c:\myfiles\mainfiles\clients\%client%\quotes\%year%\%quotenumber%" "c:\myfiles\mainfiles\clients\%client%\projects\%year%\%projectnumber%"
  </code></pre>
  
  <p>I get the error "the process does not have access to the file because it is being used by another process". 
  Can anybody tell me what I am doing wrong? I am not a programmer and cannot get this to work!
  Any help would be greatly appreciated.</p>