Hide Files using CMD (Not d Folder Option Method) by minkirax
high-technology-background-thumb4351273.jpg
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

4.bmp
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

rcalachan says: Feb 15, 2013. 1:13 AM
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
metalman1138 says: Aug 22, 2010. 9:40 AM
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.
Craig Bird says: Nov 22, 2012. 6:09 AM
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
alwaysbetter says: Feb 10, 2012. 10:46 AM
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
Swapsrocks says: Feb 23, 2012. 7:51 PM
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????
cracker0101 says: Feb 29, 2012. 12:08 PM
by the way cracker0101 is alwaysbetter
cracker0101 says: Feb 29, 2012. 12:07 PM
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!
Swapsrocks says: Mar 16, 2012. 7:45 PM
Thank you very much cracker0101.
My job is done by following the above procedure
B.F.L.M says: Dec 25, 2010. 4:58 PM
does the '+r' make the file read-only? If not, what is its purpose?
minkirax (author) says: Dec 27, 2010. 5:19 PM
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!