We help IT Professionals succeed at work.

Windows 10: How can I modify the Path that is used in a cmd session (i.e. Command Prompt)?

LeighWardle
LeighWardle asked
on
127 Views
Last Modified: 2018-09-20
Hi Experts,

How can I modify the Path that is used in a Windows 10 cmd session (i.e. Command Prompt)?

Regards,
Leigh
Comment
Watch Question

timgreen7077Exchange Engineer
CERTIFIED EXPERT
Distinguished Expert 2018

Commented:
not sure I understand but if you want the prompt to be at a different directory type the following:

cd "c:\directory path"

Author

Commented:
Hi Tim,

Sorry if my question was vague.

I want to add another folder to the PATH environment variable.

Currently when I type the path command, the output is:

PATH=C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\mpirt;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\ia32\mpirt;C:\Program Files (x86)\Common Files\Intel\Shared
Libraries\redist\ia32\compiler;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Users\Leigh\AppData\Local\Microsoft\WindowsApps;

I want to add C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE to this PATH
Technology and Business Process Advisor
CERTIFIED EXPERT
Most Valuable Expert 2013
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
Thanks Tim & Lee.

Lees' suggestion "To Modify it for ALL command prompts going forward" worked for me,