用了个隐藏文件夹的BAT文件...结果把文件隐藏后我又在那里建了个同名文件..结果回复不隐藏的文件
cls@ECHOOFFtitleFolder电脑之家ifEXIST"ControlPanel.{21EC2020-3AEA-1069-A2DD-08002B30309D}...
cls
@ECHO OFF
title Folder 电脑之家
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST 电脑之家 goto MDLOCKER
:CONFIRM
echo Are you sure you want to lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren 电脑之家 "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== 这里是密码 goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" 电脑之家
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md 电脑之家
echo 电脑之家 created successfully
goto End
:End 电脑之家就是文件夹名字
上述是BAT文件的.... 展开
@ECHO OFF
title Folder 电脑之家
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST 电脑之家 goto MDLOCKER
:CONFIRM
echo Are you sure you want to lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren 电脑之家 "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== 这里是密码 goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" 电脑之家
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md 电脑之家
echo 电脑之家 created successfully
goto End
:End 电脑之家就是文件夹名字
上述是BAT文件的.... 展开
2个回答
展开全部
其实就是把文件夹改成了。。控制面板,
你在,运行-CMD-ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" 123就可以了。。。
你在,运行-CMD-ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" 123就可以了。。。
追问
本人草鸟 .. 求详解
追答
反向还原,如果你是正常操作的话下面的代码就应该可以的。
不过估计你代码不完整,否则PASS的变量不知道用在拿了。能把源码发过来。
@ECHO OFF
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" 电脑之家123
echo end...
pause
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询