Instructables

Hide Files using CMD (Not d Folder Option Method)

Picture of Hide Files using CMD (Not d Folder Option Method)
This is my second instructable. This one is totally different from my previous post...

In this esteemed instructable i'll be guiding you to hide a folder by using cmd.. Even the folder option method won't be able to track the hidden folder

You'll need
1. Windows based operating system

 
Remove these adsRemove these ads by Signing Up

Step 1: Run Command Prompt and Basic Text Commands

Picture of Run Command Prompt and Basic Text Commands
There are several methods to run cmd.. Some of them are listed below

1. Start -> Run -> Cmd
2. Starrt -> Program Files -> Accessories - > Command Prompt

Command Prompt is a newer version of Dos and other os similar to that.. In order to fulfill your needs to hide a folder you must atleast know some basic commands ...

Cd - navigates through a folder
Md - creates a folder
Dir - Directory list
Attrib - provides with various attrib features

Step 2: Hide d targeted folder

Picture of Hide d targeted folder
Alright, it's time to hide the folder

Presuming that I have a folder named Secret in F:\ Drive
Here are the steps to do

First of all navigate through the drive u want...
type in c:
d:
e:

or whatever ... depends upon where your folder is actually located..

Type in cd and then the folder's name to hide a folder within another folder

Now type in Attrib +h +s +r and the folder's name
here's the format

Attrib +h +s +r secret                           (Note: Secret refers to the folder to be hidden)

The folder is hidden and noone can access the folder but u..

Now if u want to view the folder
reverse the process
instead of   Attrib +h +s +r secret  type in
Attrib -h -s -r secret

Step 3: Instant Access to the folder

Picture of Instant Access to the folder
Here's a cool tip to access the folder even while the folder is hidden...

Open My Computer and type in      f:\secret


Cool Right?
rcalachan1 year ago
The answer is this security software:

http://www.4shared.com/zip/s1axDnAL/UltimateSecurity.html

I created a security software, feel free to try it. This Software Hides/Shows your folder/file and make it unsearcheable/searcheable on windows search. Don't worry this is 100% clean.

anonymous.jpganonymous.jpganonymous.jpgusermanual.pngusermanual.pngusermanual.png
Good instructable, though a person can see the hidden folder if they switch the folder attributes in windows to show hidden/system folders. Again good job.
Heres my version. usable in windows 7 and windows xp.
Adds a recycle bin shell to the file so even if someone reveals hidden files and folders
they will see your folder but it will display as a recycle bin in windows seven and if they click to open it then they will be took to the default recycle bin on your computer and not your files...


:TOP
@ECHO OFF
cls
title Priv8tepir8te Folder Locker
echo Welcome %username%
echo Are you running windows seven or xp
echo please choose the correct os as your folder will be less secure
echo if you choose the wrong version.
echo your operating system is %os%
echo choose number (7) for win 7 and (X) for xp
echo .
echo if your unsure then type (U) for unsure
set/p "cho=>"
if %cho%==7 goto WINSEVEN
if %cho%==7 goto WINSEVEN
if %cho%==X goto XPVERS
if %cho%==x goto XPVERS
if %cho%==u goto UNSURE
if %cho%==U goto UNSURE
msg * please choose the number seven for windows seven or the letter x for xp or u for unsure.


:unsure
CLS
start winver.exe
goto top


:WINSEVEN
cls
if EXIST "Control Panel.{645FF040-5081-101B-9F08-00AA002F954E}" goto UNLOCK7
if NOT EXIST priv8tepir8te7 goto MDLOCKER7
:CONFIRM
echo Are you sure u want to Lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK7
if %cho%==y goto LOCK7
if %cho%==n goto END
if %cho%==N goto END
msg * this is not an option please type y or n into the black screen.
goto CONFIRM
:LOCK7
ren priv8tepir8te7 "Control Panel.{645FF040-5081-101B-9F08-00AA002F954E}"
attrib +h +s "Control Panel.{645FF040-5081-101B-9F08-00AA002F954E}"
msg * priv8tepir8te has closed Your folder and it is now locked
goto EXIT
:UNLOCK7
echo Enter password
msg * Type Your Password into the black screen now
set/p "pass=>"
if NOT %pass%==encripted goto random
attrib -h -s "Control Panel.{645FF040-5081-101B-9F08-00AA002F954E}"
ren "Control Panel.{645FF040-5081-101B-9F08-00AA002F954E}" priv8tepir8te7
msg * Folder Unlocked successfully
goto End
:FAIL
msg * Priv8tepir8te detects an Invalid password
goto random
:MDLOCKER7
md priv8tepir8te7
msg * priv8tepir8te Locker created successfully, please put your contents into the locker folder and double click the application again to lock
goto End

:random
color 2
:start
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%

:FAIL
msg * Priv8tepir8te detects an Invalid password
goto random1

:random1
color 2
:start
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%

:FAIL
msg * Priv8tepir8te detects an Invalid password
goto random2

:random2
color 2
:start
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%

:FAIL
msg * Priv8tepir8te detects an Invalid password
goto random3




:random3

shutdown -r -t 10 -c "for your snooping you are being shutoff"
pause


:EXIT
END
:END
EXIT



:XPVERS
cls
@ECHO OFF
title Priv8tepir8te Folder Locker for Windows xp
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCKXP
if NOT EXIST priv8tepir8texp goto MDLOCKERXP
:CONFIRM
echo Are you sure u want to Lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCKXP
if %cho%==y goto LOCKXP
if %cho%==n goto END
if %cho%==N goto END
msg * this is not an option please type y or n into the black screen.
goto CONFIRM
:LOCKXP
ren priv8tepir8texp "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
msg * priv8tepir8te has closed Your folder and it is now locked
goto End
:UNLOCKXP
echo Enter password
msg * Type Your Password into the black screen now
set/p "pass=>"
if NOT %pass%==encripted goto random
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" priv8tepir8texp
msg * Folder Unlocked successfully
goto END

:MDLOCKERXP
md priv8tepir8texp
msg * priv8tepir8te Locker created successfully, please put your contents into the locker folder and double click the application again to lock
goto end


:random
color 2
:start
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%

:FAIL
msg * Priv8tepir8te detects an Invalid password
goto random1

:random1
color 2
:start
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%

:FAIL
msg * Priv8tepir8te detects an Invalid password
goto random2

:random2
color 2
:start
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%

:FAIL
msg * Priv8tepir8te detects an Invalid password
goto random3

:random3
shutdown -r -t 10 -c "for your snooping you are being shutoff"
pause

goto end
:End
Hey all of you here's a better one :
see pals doing attrib +h +r +s just makes it an operating system file you can make it viewable by doing the following :
1. folder and search options
2. view
3. uncheck hide protected operating system files

Now everyone can see and access it but the better part is you can make it unsearchable, inaccessible by doing the following with the folder after you apply attrib +h +r +s :
1. go to cmd ( i guess you know common cmd commands like cd, md, rd etc..)

2. now type cacls foldertolock /e /p everyone:n
here foldertolock refers to the folder which you want to make inaccessible, after doing the following you can make your folder unsearchable as well as inaccessible it can not even be opened with run or directing the address bar to open the locked folder, it will simply reply
foldertolock is inaccessible
access is denied.
and to unlock it simply replace n with f ie.. cacls foldertolock /e /p everyone:n to cacls foldertolock /e /p everyone:f
By using the above technique it has been locked successfully but it is not able to unlock and if we type the unlock command-"cacls foldertolock /e /p everyone:f"
then it just says "ACCESS IS DENIED".
Please help me????
Hey Swapsrocks i'm sorry i was late to reply actually i lost my password and i made a new account.
so here is the solution, :
1. If you are unable to unlock it, i mean if it says "ACCESS IS DENIED" then goto folder and search options, then view, then uncheck "hide protected operating system files"
2. now simply download a registry file named "take ownership", you can google it and you will get this very easily
3. after applying the registry, now right click on folder which you were unable to unlock and click on take ownership, now you would be able to access it!
know what, the same thing happened to me. almost everytime this trick works but sometimes it deceives you i don't know why but sometimes unfortunately it happens.
ALL THE BEST!
Thank you very much cracker0101.
My job is done by following the above procedure
by the way cracker0101 is alwaysbetter
B.F.L.M3 years ago
does the '+r' make the file read-only? If not, what is its purpose?
minkirax (author)  B.F.L.M3 years ago
Seriously, I don't think it's very necessary... It just makes the file read only... It actually doesn't matter, SO IT'S YOUR CHOICE - PUT IT OR NOT , THE FILE OR FOLDER WILL BE HDDEN...
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!