打开后选择之后闪退
命令如下,已删去部分echo命令
随便问一句,如何获得注册表项的权限
set variable=
set /p variable=请输入:
if /i "%variable%"=="1" ( goto taskmgr )
if /i "%variable%"=="2" ( goto task )
if /i "%variable%"=="3" ( goto logoff )
if /i "%variable%"=="4" ( goto setfolder )
if /i "%variable%"=="5" ( exit )
if not defined variable ( msg %username% 您输入的有误,请重新输入 )
:task
@echo off
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoRun" /d 0 /t REG_DWORD /f
:taskmgr
@echo off
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "DisableTaskMgr" /d 0 /t REG_DWORD /f
:logoff
@echo off
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "StartMenuLogOff" /d 0 /t REG_DWORD /f
@echo off
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "NoDispSettingsPage" /d 0 /t REG_DWORD /f
批处理选择语句if命令语法不对
答案:1 悬赏:10 手机版
解决时间 2021-02-11 02:51
- 提问者网友:山高云阔
- 2021-02-10 16:25
最佳答案
- 五星知识达人网友:有你哪都是故乡
- 2021-02-10 18:01
goto :start
set variable=
set /p variable=请输入:
if /i "%variable%"=="1" goto taskmgr
if /i "%variable%"=="2" goto task
if /i "%variable%"=="3" goto logoff
if /i "%variable%"=="4" goto setfolder
if /i "%variable%"=="5" exit
if not defined variable echo %username% 您输入的有误,请重新输入
echo 请按任意键返回到开始选择界面
puase>nul
cls
goto :start
:task
@echo off
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoRun /d 0 /t REG_DWORD /f
pause
goto :eof
:taskmgr
@echo off
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v DisableTaskMgr /d 0 /t REG_DWORD /f
pause
goto :eof
:logoff
@echo off
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v StartMenuLogOff /d 0 /t REG_DWORD /f
pause
goto :eof
@echo off
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v NoDispSettingsPage /d 0 /t REG_DWORD /f
pause
goto :eof
set variable=
set /p variable=请输入:
if /i "%variable%"=="1" goto taskmgr
if /i "%variable%"=="2" goto task
if /i "%variable%"=="3" goto logoff
if /i "%variable%"=="4" goto setfolder
if /i "%variable%"=="5" exit
if not defined variable echo %username% 您输入的有误,请重新输入
echo 请按任意键返回到开始选择界面
puase>nul
cls
goto :start
:task
@echo off
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoRun /d 0 /t REG_DWORD /f
pause
goto :eof
:taskmgr
@echo off
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v DisableTaskMgr /d 0 /t REG_DWORD /f
pause
goto :eof
:logoff
@echo off
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v StartMenuLogOff /d 0 /t REG_DWORD /f
pause
goto :eof
@echo off
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v NoDispSettingsPage /d 0 /t REG_DWORD /f
pause
goto :eof
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯