I'd like to permanently change the PATH of a Windows XP system using a DOS Batch file.
The syntax I came up with was:
FROM:
set PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
TO:
set PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\NewPathDIR\
Is this correct?
You do not need the trailing slash
It will change the path but only during that console session.
To change the PATH variable permanently :
My Computer - Properties - Advanced - Environment Variables
or
Control Panel - System - Advanced - Environment variables
Reboot.