This is an improved code for Hiding folders. You just need to set your password. Rest of the instructions are same as that of Previous code.
http://urlforhackers.blogspot.com/2011/01/code-for-hiding-folder.html
@echo off
setlocal enabledelayedexpansion
echo Enter the name of Folder/File you want to Hide/Unhide..
set /p "file=>"
if exist !file! goto CODE
if exist !file!.hidden goto UNLOCK
echo File/Folder to be hidden doesn't exist...
set /p "%pause%=>"
goto END
:CODE
echo Are you sure you want to hide the folder/file? (Y/N)
set /p "hide=>"
if "%hide%"=="y" goto HIDE
if "%hide%"=="Y" goto HIDE
if "%hide%"=="n" goto FAIL
if "%hide%"=="N" goto FAIL
:HIDE
echo Enter the path of the folder where the folder/file exist that you want to hide:
set /p "dir=>"
set %dir% | cd
ren !file! !file!.hidden
attrib +s +h +r !file!.hidden
goto END
:UNLOCK
echo Enter Password
set /p "pass=>"
if not "%pass%"=="SETYOURPASSWORD" goto FAIL
attrib -s -h -r !file!.hidden
ren !file!.hidden !file!
goto END
:FAIL
echo Invalid Password
:END
Facebook Like Button
Showing posts with label Codes. Show all posts
Showing posts with label Codes. Show all posts
Code for Hiding Folder
The following code will surely help you hide as well as lock your folder. You just need to replace the following strings in the code:
YOURFILE/FOLDERNAME: Enter the name of folder or file(with extension) you want to hide.
SETYOURPASSWORD: Set you password by replacing this string.
NOTE: COPY THE FOLLOWING CODE IN NOTEPAD/WORDPAD SAVE IT AS "GIVEITANAME.BAT".
Anyone can see your password by RightClick>Edit, thats why i have coded it in such a way that the Directory of the Folder/File to be hidden should be known. For further prevention you should save this Batch file in a Directory other than the one where your hidden Folder/File is present.
YOURFILE/FOLDERNAME: Enter the name of folder or file(with extension) you want to hide.
SETYOURPASSWORD: Set you password by replacing this string.
NOTE: COPY THE FOLLOWING CODE IN NOTEPAD/WORDPAD SAVE IT AS "GIVEITANAME.BAT".
Anyone can see your password by RightClick>Edit, thats why i have coded it in such a way that the Directory of the Folder/File to be hidden should be known. For further prevention you should save this Batch file in a Directory other than the one where your hidden Folder/File is present.
Subscribe to:
Posts (Atom)