双击不能打开驱动器

来源:百度知道 编辑:UC知道 时间:2024/05/18 00:13:26
不是网上已经解决的那些问题,双击不能打开驱动器,双击会出现一个打开方式让我选,会让我选择一个程序来打开这个文件。右键也不能打开,只能通过在地址栏输入盘符才能进入硬盘,急等高手来帮忙解决。拜谢!!!

把我下面的代码复制下来,另存为.bat文件,然后双击该.bat文件就可以解决问题了.

@echo off
title 忆林子--解决分区无法打开
color 0a
echo 例如:D盘无法打开则输入 d,你也可以
echo 输入d,e,f这样来同时对d,e,f等多个分区操作.
set /p input=[请输入无法打开的分区的盘符]
if /i "%input%"=="c" goto :特殊
for /d %%i in (%input%) do cacls %%i:\autorun.inf /c /e /p everyone:f
for /d %%i in (%input%) do attrib -s -h -r %%i:\autorun.inf
for /d %%i in (%input%) do del %%i:\autorun.inf /q
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v SVOHOST /f
cls
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL" /v CheckedValue /f
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL" /v CheckedValue /t reg_dword /d 1 /f
cls
chkdsk %input%: /f
cls
set