title: Parse multiple arguments inside a batch file.
body: <p>I would like to read two parameters that are passed to a batch file. The batch file will be executed from a C++ program using CreateProcess method. The second parameter to the batch file is a folder path, so from the program if I am passing the second parameter such as "E:\test folder\test2" the batch file does not get executed. </p>
  
  <p>But if I instead pass E:\test folder\test2 the batch file gets executed but obviously the second parameter has the value E:\test only.. So what I would like to do is to read the first parameter using %1 and get the rest of the contents into another variable. </p>
  
  <p>Can some one tell me how I can achieve this ? I tried with %* but it gives me both first and second parameters. I would like to remove the first token with space as delimiter so that I have the rest of the contents in the variable. Is there a way to do this ?  </p>
  
  <p>For example If I pass test.bat testparameter1 E:\test folder\test folder2\test folder3 </p>
  
  <p>I would like to read the value E:\test folder\test folder2\test folder3 into a variable. </p>
  
  <p>If I pass test.bat testparameter1 E:\test\test folderX\test folderY the valueIi want to read in to a variable inside the batch file is E:\test\test folderX\test folderY </p>
  
  <p>Can someone help me with this ? Thanks in advance. </p>