Create Undeletable Folder
Hello everyone,
Ever wanted to create a folder which would not be deleted ?
This is a post for "Creating a undeletable folder in windows"
Continue reading for more info about the amaizing post ahead,
@echo off
Title Undeletable folder
color 8f
echo Enter choice
echo 1: Create Undeletable Folder
echo 2: Remove Undeletable Folder
echo Press 1 OR 2
set /p choice=
if %choice%==1 goto :create
if %choice%==2 goto :remove
:create
cls
echo Enter Drive Name In Which You Want To Create Undeletable Folder
set /p drive=
%drive%:
echo Enter Folder Name If You Want To Create OR Else Press Enter
set /p folder=
cd /%folder%
echo Enter Folder Name You Want To Create (con,aux, lpt1, lpt2, lpt3 up to lpt9 ONLY)
set /p name=
md %name%\
pause
exit
:remove
cls
echo Enter Drive Name In Which Undeletable Folder Exists
set /p drive=
%drive%:
echo Enter Folder Name If Undeletable Folder Exists Inside Another Folder
set /p folder=
cd /%folder%
echo Enter Folder Name You Want To Delete (con,aux, lpt1, lpt2, lpt3 up to lpt9 ONLY)
set /p name=
rd %name%\
pause
exit
Please Don't write name of folder other than (con,aux, lpt1, lpt2, lpt3,.. ,lpt9)
Otherwise it will not work.
Hello everyone,
Ever wanted to create a folder which would not be deleted ?
This is a post for "Creating a undeletable folder in windows"
Continue reading for more info about the amaizing post ahead,
@echo off
Title Undeletable folder
color 8f
echo Enter choice
echo 1: Create Undeletable Folder
echo 2: Remove Undeletable Folder
echo Press 1 OR 2
set /p choice=
if %choice%==1 goto :create
if %choice%==2 goto :remove
:create
cls
echo Enter Drive Name In Which You Want To Create Undeletable Folder
set /p drive=
%drive%:
echo Enter Folder Name If You Want To Create OR Else Press Enter
set /p folder=
cd /%folder%
echo Enter Folder Name You Want To Create (con,aux, lpt1, lpt2, lpt3 up to lpt9 ONLY)
set /p name=
md %name%\
pause
exit
:remove
cls
echo Enter Drive Name In Which Undeletable Folder Exists
set /p drive=
%drive%:
echo Enter Folder Name If Undeletable Folder Exists Inside Another Folder
set /p folder=
cd /%folder%
echo Enter Folder Name You Want To Delete (con,aux, lpt1, lpt2, lpt3 up to lpt9 ONLY)
set /p name=
rd %name%\
pause
exit
Please Don't write name of folder other than (con,aux, lpt1, lpt2, lpt3,.. ,lpt9)
Otherwise it will not work.
Thank you boss, Very usefull
ReplyDeletei want a scheduled self destructive bat file. can u please help me?