aboutblank

@echo off
color 02
echo 请选择要执行的操作(1-删除箭头,2-修复锁定,3-退出)
set choice=
set /p choice=请选择(1/2/3)按回车执行:
if /i \'%choice%\'==\'1\' goto a
if /i \'%choice%\'==\'2\' goto b
if /i \'%choice%\'==\'3\' goto end
:a
reg delete HKEY_CLASSES_ROOT\piffile /v IsShortcut /f
reg delete HKEY_CLASSES_ROOT\lnkfile /v IsShortcut /f
taskkill /f /im explorer.exe
cls
explorer.exe
:b
reg add HKEY_CLASSES_ROOT\lnkfile /v IsShortcut /t REG_SZ /f
reg add HKEY_CLASSES_ROOT\piffile /v IsShortcut /t REG_SZ /f
taskkill /f /im explorer.exe
cls
explorer.exe
:end
exit

 

上边的内容保存到一个bat文件,根据提示操作.

分类:

技术点:

相关文章:

  • 2021-11-13
  • 2021-11-17
  • 2021-12-05
  • 2021-11-07
  • 2021-11-27
  • 2021-11-13
  • 2021-12-05
猜你喜欢
  • 2021-12-05
  • 2021-12-05
  • 2021-11-13
  • 2021-11-17
  • 2021-12-15
  • 2021-11-13
相关资源
相似解决方案