Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 368a7fa

Browse files
Initial changes
1 parent dad49fa commit 368a7fa

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

‎cli_changer.bat

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,14 @@ for /L %%a in (1,1,%$lastUsersEnvironmentalPathArrayId%) do (
265265
rem Add the selected PHP folder path to the end of the users environmental path string.
266266
set $usersEnvironmentalPathString=%$usersEnvironmentalPathString%%$pathToPhpFolders%\!$availablePhpVersionsArray[%$newSelectionId%]!
267267

268-
rem Set the users environmental path string.
269-
setx path "%$usersEnvironmentalPathString%" >nul
268+
rem Check if the change is for an open session only.
269+
if "%~2" eq "--temp" (
270+
rem Temporary change the users environmental path string in the open session only.
271+
set path "%$usersEnvironmentalPathString%" >nul
272+
) else (
273+
rem Permanently change the users environmental path string.
274+
setx path "%$usersEnvironmentalPathString%" >nul
275+
)
270276

271277

272278
rem ------------------------------

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /