1

I was trying to edit the %PATH% variable using command line in Windows 10, following the Edit %PATH% Variable in Windows 10 tutorial, but pathman/au was not recognized.

What should be the right approach to do that?

pathman /au C:\Program Files\Java\jdk-16 'pathman'
is not recognized as an interval or external command, operable program or batch file.

Console

1 Answer 1

2

In order to use this tool you need to install Windows resource kit tools ‘pathman.exe‘

Alternatively you can use this directly on the command line:

setx path "%path%;c:\directoryPath"

To add a new path variable to the %path% script. (You can use the option /M for system PATH variable)

I found this reference useful to look through: https://www.windows-commandline.com/set-path-command-line/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.