How to Hide Files on Flash Drives
- 1). Connect the flash drive to the computer.
- 2). Click "Start," then type "run" into the search box and click the "Run" link. Type "cmd" press "Enter." A new Command window will launch.
- 3). Change the working folder to the folder that contains the file you want to hide, as in the following example:
D:
cd "\myDocs\"
Replace "D:" by the letter assigned to the flash drive by the operating system. Replace "\myDocs\" by the full path to the folder containing the file you want to hide. Press "Enter" at the end of each line. - 4). Type the following command:
attrib +h "myFile.doc"
Replace "myFile.doc" by the name of the file you want to hide. Press "Enter." The "hidden" attribute will be set for the file and it will become invisible in directory listings.