title: 'C:\' in CMD, the filename, directory name, or volume label syntax is incorrect
body: <p>Recently started trying to learn java and the first thing I needed to do was to make a PATH variable. My path variable looks like this. </p>
  
  <pre><code>C:\Users\Collin&gt;echo %path%
  'C:\Program Files(x86)\Java\jdk1.7.0_40\bin';C:\Windows;C:\Windows\system32;
  'C:\Program Files(x86)\Java\jdk1.7.0_40\bin';C:\Windows;C:\Windows\system32;
  </code></pre>
  
  <p>So, I attempt to use javac to see if path did work. Javac did not work, showing the error of not recognized as an internal or external command, operable program, or batch file.
  I then tried just using path and I got this:</p>
  
  <pre><code>C:\Users\Collin&gt;%path%
  The filename, directory name, or volume label syntax is incorrect.
  </code></pre>
  
  <p>I then tried to just use basic explorer paths such as 'C:\' and tried another drive as 'G:\'. I've tried almost every variation of quotations and formatting but nothing seems to work.</p>
  
  <pre><code>C:\Users\Collin&gt;C:\
  'C:\' is not recognized as an internal or external command,
  operable program or batch file.
  
  C:\Users\Collin&gt;'C:\'
  The filename, directory name, or volume label syntax is incorrect.
  
  C:\Users\Collin&gt;"C:\"
  '"C:\"' is not recognized as an internal or external command,
  operable program or batch file.
  
  C:\Users\Collin&gt;'G:\'
  The filename, directory name, or volume label syntax is incorrect.
  </code></pre>
  
  <p>I'm running Windows 7 Ultimate 64-bit as my OS. Will I have to just format my HDD? This seems to be a problem with the registry, and as such I'm thinking that I will have to format and reinstall. But, maybe there is something I didn't catch that you guys can? Any help would be greatly appreciated, even if you tell me I have to format. Thanks in advance.      </p>