title: .bat file - cd to a directory with a space in its name and also using a variable?
body: <p>ive written a quick .bat file that reads in the name of a directory typed in by the user, i store that variable in a variable, and then i want to actually cd to that directory.</p>
  
  <p>i've tested it out with simple directories like "C:," for instance, and that works. however, when i'm dealing with the user entering in something like "C:\Documents and Settings\Desktop," i can't do cd %directory%\sampleFolder. </p>
  
  <p>i keep getting an error of "the system cannot find the path specified," even though i'm using the full name. anyone know how to overcome this?</p>