How to set the DOS/Windows PATH variable: To SET or not to SET?
<p>This one is so embarrassingly basic that I am, well, embarrassed to ask, but here goes: Do I need to write</p>

<pre><code>SET PATH=c:\mynewpath;%PATH%
</code></pre>

<p>or is</p>

<pre><code>PATH=c:\mynewpath;%PATH%
</code></pre>

<p>sufficient? The output is always <code>c:\mynewpath;...</code> so I figure maybe both are OK? Any other variable than PATH only works with <code>SET</code>, so <code>PATH</code> must be special. If that is so, are there any other "magic" variables like this?</p>