-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Unfortunately, I tried many powershell scripts, including yours, but none of them work. While the cmd script is running
@ECHO OFF
REM usage: append_system_path "path"
SET Key="HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment"
FOR /F "usebackq tokens=2*" %%A IN (`REG QUERY %Key% /v PATH`) DO Set CurrPath=%%B
ECHO %CurrPath% > system_path_bak.txt
SETX /M PATH "%CurrPath%;%1
Metadata
Metadata
Assignees
Labels
No labels