1、创建文件C:\alias.cmd

@echo off
@doskey php56="D:\phpstudy_pro\Extensions\php\php5.6.9nts\php" $*
@doskey php73="D:\phpstudy_pro\Extensions\php\php7.3.9nts\php" $*
@doskey php82="D:\phpstudy_pro\Extensions\php\php8.2.9nts\php" $*

2、编辑注册表(regedit)

找到Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor

新建字符串值 AutoRun, 修改值为C:\alias.cmd




Copyright 2020 © 一诺唯品 粤ICP备16111849号-3