|
@echo off
@pushd %~dp0
pushd "%CD%"
CD /D "%~dp0"
set addph=%~dp0
%1 start "" mshta vbscript:createobject("shell.application").shellexecute("""%~0""","::",,"runas",1)(window.close)&exit
:主菜单
color 0b
cls
echo.*-----------------------------------------------------------------------------*
echo *********************** 禁用和开启内置键盘 **************************
echo.*-----------------------------------------------------------------------------*
echo.* *
echo.* (1) 禁用内置键盘
echo.* *
echo.* (2) 开启内置键盘
echo.* *
echo.*-----------------------------------------------------------------------------*
echo. 请在管理员下运行...........
echo *******************************************************************************
SET /P zhucd= 请输入()中的数字键并按回车 :
if /I "%zhucd%"=="1" sc config i8042prt start= disabled
if /I "%zhucd%"=="2" sc config i8042prt start= auto
color 0e
echo.
echo.
echo.*-----------------------------------------------------------------------------*
echo.
echo. 按任意建重启电脑后设置生效。
echo. & pause
shutdown -r -t 0
exit |
|