Using DOS disguise to protect the complete version of files

Time:2020-11-21

Save the following code as safe.bat Run the installation prompt and enter.

Copy codeThe code is as follows:
@echo off
Title DOS file Camouflage Protection
REM set title
Echo 1. Write protection
Echo 2. Write down protection
set /p choice=
if not “%Choice%”==”” set Choice=%Choice:~0,1%
if /i “%choice%”==”1” goto 1
if /i “%choice%”==”2” goto 2
REM function selection jump
exit

:1
cls
Echo file list:
dir /d
REM displays the current directory file
Set / P file = please enter file name:
ren %file% %file%.lnk
REM modify file name
Echo protection complete

:2
cls
Echo file list:
dir /d
REM displays the current directory file
Set / P file = please enter file name:
ren %file%.lnk %file%