{"id":14087,"date":"2019-04-11T07:01:51","date_gmt":"2019-04-11T07:01:51","guid":{"rendered":"https:\/\/www.top-password.com\/blog\/?p=14087"},"modified":"2019-04-11T07:03:30","modified_gmt":"2019-04-11T07:03:30","slug":"windows-10-hide-or-unhide-folders-files-using-command-prompt","status":"publish","type":"post","link":"https:\/\/www.top-password.com\/blog\/windows-10-hide-or-unhide-folders-files-using-command-prompt\/","title":{"rendered":"Windows 10: Hide or Unhide Folders \/ Files Using Command Prompt"},"content":{"rendered":"<p>Is there a way to hide important files to prevent accidental deletion? In this tutorial we&#8217;ll show you how to hide or unhide folders \/ files in Windows 10 using Command Prompt.<\/p>\n<p><strong>Hide Folders or Files<\/strong><\/p>\n<p>When you&#8217;re going to hide a specific folder or file, open up the Command Prompt and type:<br \/>\n<code>attrib +h \"your_folder_or_file\"<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2019\/04\/hide-a-folder-with-cmd.png\" alt=\"\" width=\"456\" height=\"144\" class=\"alignnone size-full wp-image-14091\" \/><\/p>\n<p>This command will assign the &#8220;<strong>Hidden<\/strong>&#8221; attribute to your target folder or file, and make it disappear from the File Explorer view.<\/p>\n<p>If you need to hide all files and subfolders in your target location (for exmaple, <em>D:\\demo<\/em>), run this following command:<br \/>\n<code>attrib +h \"d:\\demo\\*\" \/s \/d<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2019\/04\/hide-files-and-subfolders.png\" alt=\"\" width=\"459\" height=\"137\" class=\"alignnone size-full wp-image-14092\" \/><\/p>\n<p><strong>List Hidden Files<\/strong><\/p>\n<p>If you need to list hidden files and folders while in Command Prompt, use the <strong>CD<\/strong> command to change your working directory and then type:<\/p>\n<p><code>dir \/a:h<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2019\/04\/list-hidden-files-and-folders.png\" alt=\"\" width=\"491\" height=\"294\" class=\"alignnone size-full wp-image-14093\" \/><\/p>\n<p>This will show all hidden folders or files in that location.<\/p>\n<p><strong>Unhide Folders or Files<\/strong><\/p>\n<p>When you need to unhide a specific folder or file, execute this command:<br \/>\n<code>attrib -s -h \"your_hidden_folder_or_file\"<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2019\/04\/unhide-a-folder-with-cmd.png\" alt=\"\" width=\"457\" height=\"138\" class=\"alignnone size-full wp-image-14094\" \/><\/p>\n<p>In order to unhide all hidden files and subfolders under a location (e.g. <em>D:\\demo<\/em>), type this command:<br \/>\n<code>attrib -s -h \"d:\\demo\\*\" \/s \/d<\/code><\/p>\n<p>That&#8217;s it! The built-in option to hide folders\/files is pretty easy but it&#8217;s not secure because anyone can unhide them the easy way. If you need to hide sensitive files from prying eyes, it&#8217;s a good idea to use third-party softwares (for instance, <a href=\"https:\/\/www.top-password.com\/protect-my-folders.html\" rel=\"noopener noreferrer\" target=\"_blank\">Protect My Folders<\/a>) to hide and lock your folders\/files with a password.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Is there a way to hide important files to prevent accidental deletion? In this tutorial we&#8217;ll show you how to hide or unhide folders \/ files in Windows 10 using Command Prompt. Hide Folders or Files When you&#8217;re going to hide a specific folder or file, open up the Command Prompt and type: attrib +h [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,10,1894],"tags":[],"class_list":["post-14087","post","type-post","status-publish","format-standard","hentry","category-others","category-tips-tricks","category-windows-10"],"_links":{"self":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/14087","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/comments?post=14087"}],"version-history":[{"count":6,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/14087\/revisions"}],"predecessor-version":[{"id":14097,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/14087\/revisions\/14097"}],"wp:attachment":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/media?parent=14087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/categories?post=14087"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/tags?post=14087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}