Hide Files Using CMD (Not D Folder Option Method)

135,286

12

20

Published

Introduction: 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

Step 1: 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

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

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?

Share

    Recommendations

    • Creative Misuse Contest

      Creative Misuse Contest
    • Clocks Contest

      Clocks Contest
    • Oil Contest

      Oil Contest

    20 Discussions

    One thing you cna do with this command in cmd is create a password protected folder. Since the folder is still accessible when hidden, name the folder what ever you want the password, and keep it hidden. Someone could just type in F:/secret to get that information but this wayh you can type in F:/password and then it will come up.

    How to make a file hidden even show hidden files and unhide protected files option are enabled.. If any one know acknowledge me with your answer

    perfect :D just what i was looking for, u sir really are "always better"

    Hey "always better" when i m using "everyone:n" it shows invalid parameter everyone:n

    what should i do

    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

    8 replies

    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????

    If you are using Windows 7, then follow below process to get access your folder.

    1) Go to Organize then Click on folder and search options.

    2) Go to View tab then select show hidden files, folders and drives also uncheck hide protected operating system files. See the image.

    3) Right click on your folder then click on properties, then go to security tab, here you will see that access for everyone is denied, So select everyone and click on Edit... button. Here a popup box will appear, so select allow for full control and then click on OK button. now you have access to the folder. See the image.

    showHiddenFolder.JPGAccessPermission.JPG

    Look, Swapsrocks, this is what you need to do:

    icacls YourFolderName /reset /t

    icacls YourFolderName /grant Administrator:d

    cacls YourFolderName /e /c /g %username%:f

    if this dont work then you need to use ubuntu or linux to remove it.

    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!

    Hi there,

    It happened because you added +r in the command. It makes a folder or file read only that creates problem for you and you are unable to change its attributes. you should just use (attrib +s +h "folder name") to hide a folder as system protected. and if you used +r , then you should be able to -r it or uncheck read only box by opening the properties of folder after unhiding it using folder options or command line.

    gusy please help me....i m looking for reference of cmd..i want to study cmd in detail...where i can get it....plz help

    yes, it makes the file read only that means you cannot make changes to the file.

    to undo it , you can use -r or use file's properties to uncheck the read only box.

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

    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.

    1 reply

    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