新建、使用和删除隐藏文件夹(真正完美隐藏)
1、右键单击Windows开始菜单键,选择命令提示符(管理员),打开“管理员:命令提示符”对话框。
2、新建隐藏文件夹
在命令提示符窗口中输入md 文件夹目录\文件夹名..\
如md D:\test..\
3、这时,我们会发现文件夹目录出现了一个名为 文件夹名. 的文件夹
如:在D盘根目录出现了一个名为 test. (XP)或test..(Win7+)的文件夹
这个文件夹无法删除、在xp系统下无法打开、在win7及以上系统下可以打开但为空
4、使用文件夹
我们照样需要使用DOS命令行才能进入
在命令提示符(管理员)中输入 start 文件夹目录\文件夹名~1 方可进入
例如:
start D:\test~1
5、你在这个弹出的窗口中所做的任何编辑和存放的任何文件,在可以看见但无法删除的那个文件夹中并没有,只能通过DOS命令行查看和编辑。
6、如果经常会用到这个隐藏文件夹,可以制作一个简易的.bat文件来打开它
直接新建一个.txt文件,将后缀改为.bat,右键单击-编辑
在.bat文件中写:
@echo off
start 文件夹目录\文件夹名~1
例如:
@echo off
start D:\test~1
7、如果需要对启动文件加密,
则在.bat文件中写:
@echo off
mode con cols=30 lines=4
set b=5
:pwd
title Password
set /a a=%a%+1
set /a b=%b%-1
set /p pwd=请输入密码:
if /I "%pwd%"=="你的密码" goto main
if /I "%a%"=="5" goto err
echo Error %a% times! You have %b% times left now.
goto pwd
:err
color 40
mode con cols=30 lines=2
title Error!
cls
echo.
echo Error 5 times, it will exit!
ping 127.1 -n 6 >nul
exit
:main
mode con cols=30 lines=3
echo Password right!
pause
cls
goto program
:program
mode con cols=64 lines=16
start 文件夹目录\文件夹名~1
exit
例如:
@echo off
mode con cols=30 lines=4
set b=5
:pwd
title Password
set /a a=%a%+1
set /a b=%b%-1
set /p pwd=请输入密码:
if /I "%pwd%"=="password" goto main
if /I "%a%"=="5" goto err
echo Error %a% times! You have %b% times left now.
goto pwd
:err
color 40
mode con cols=30 lines=2
title Error!
cls
echo.
echo Error 5 times, it will exit!
ping 127.1 -n 6 >nul
exit
:main
mode con cols=30 lines=3
echo Password right!
pause
cls
goto program
:program
mode con cols=64 lines=16
start D:\test~1
exit
8、之后我们便可以使用这个.bat文件打开隐藏文件夹,你也可以将编写好的启动文件放在U盘上或者其它隐秘的位置(如C:\system32中)
9、如果很长时间以后不需要这个文件夹了,我们可以打开命令提示符(管理员),在其中输入:rd 文件夹目录\文件夹名~1 即可删除
例如:
rd D:\test~1