0

I need to write a script to set the bin path in the environment variable in windows. I found the solution here Shell script to set environment variables permanently However I'm looking for how to append the value in the PATH variable in system variables in windows os.

spring-boot-cli-2.4.0-bin\spring-2.4.0\bin

I'm new to shell script. Can someone help? Thanks!

Sweta Sharma
  • 1,930
  • 3
  • 13
  • 27
  • 2
    Does this answer your question? [Set a persistent environment variable from cmd.exe](https://stackoverflow.com/questions/5898131/set-a-persistent-environment-variable-from-cmd-exe) – derpirscher Dec 06 '20 at 13:44
  • Thank you for sharing the solution. It does set the environment variable in windows. However, I need to append the value to the PATH variable under system variables. – Sweta Sharma Dec 06 '20 at 14:03
  • This might help you adding or removing system variables using cmd/Powershell with Admin permissions: https://garytown.com/edit-add-remove-system-path-variable-via-powershell –  Dec 06 '20 at 17:07

0 Answers0