利用DOS伪装保护文件


@echo off
Title DOS文件伪装保护
rem 设置标题
echo 1.写入保护
echo 2.解写保护
set /p choice=
if not "%Choice%"=="" set Choice=%Choice:~0,1%
if /i "%choice%"=="1" goto 1
if /i "%choice%"=="2" goto 2
rem 功能选择跳转
exit

:1
cls
echo 文件列表:
dir /d
rem 显示当前目录文件
set /p file=请输入文件名:
ren %file% %file%.lnk
rem 修改文件名
echo 保护完成

相关内容

    暂无相关文章