-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathenvironment-7.3.bat
More file actions
26 lines (21 loc) · 814 Bytes
/
environment-7.3.bat
File metadata and controls
26 lines (21 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
@echo off
setlocal
echo %PATH% | findstr /R /I /C:"php-.*-x64" > NUL
If %ERRORLEVEL% EQU 1 goto add
set PATH=%PATH:php-7.0-Win32-VC14-x64=php-7.3-Win32-VC15-x64%
set PATH=%PATH:php-7.1-Win32-VC14-x64=php-7.3-Win32-VC15-x64%
set PATH=%PATH:php-7.2-Win32-VC15-x64=php-7.3-Win32-VC15-x64%
set PATH=%PATH:php-7.4-Win32-VC15-x64=php-7.3-Win32-VC15-x64%
set PATH=%PATH:php-8.0-Win32-vs16-x64=php-7.3-Win32-VC15-x64%
set PATH=%PATH:php-8.1-Win32-vs16-x64=php-7.3-Win32-VC15-x64%
set PATH=%PATH:php-8.2-Win32-vs16-x64=php-7.3-Win32-VC15-x64%
set PATH=%PATH:php-8.3-Win32-vs16-x64=php-7.3-Win32-VC15-x64%
set PATH=%PATH:php-8.4-Win32-vs16-x64=php-7.3-Win32-VC15-x64%
goto continue
:add
set PATH=%WAP_SERVER%\php-7.3-Win32-VC15-x64;%PATH%
goto continue
:continue
cd /d "%WAP_SERVER%"
title win-apache-php PHP 7.3
cmd /K