How to Hide Files and Folders Using Batch Files

Today, privacy is a hot topic. The technique of hiding files and folders comes in handy when you are using a computer which is used by more than one person. This article will show you a techie way to hide files and folders in Windows 7 using command line.

The following Tech-Recipes articles have been posted regarding how to show or hide files using the graphical interface in Windows OS:

In this post you will learn how to show or hide files and folders in Windows using the command line prompt.

We will use the attrib command to hide or show files or folders in Windows.

attrib: Using the attrib command in Windows, we can change file attributes (i.e., read-only, system and hidden flag).

attrib +h [file/folder name]: This will set hidden attributes to active. It will hide a file/folder.

attrib -h [file/folder name]: This will remove hidden attributes from a file to make files/folders visible to everyone.

How to Hide a File in Windows Using Command Prompt

1. Open your Command Prompt window using the Windows + R key combination, and then type cmd.
2. Navigate to the path where your file is located.
3. Type attrib +h file name to make it hidden.
4. To make it visible again, remove the hidden attribute using attrib -h filename.

How to Hide Files and Folders Using Batch Files

How to Hide a Folder in Windows Using Command Prompt

1. Open your Command Prompt window by using the Windows + R key combination, and then type cmd.
2. Navigate to the path where your folder is located.
3. Type attrib +h folder name to make your folder hidden from everyone.
4. To make it visible again, remove the hidden attribute using attrib -h folder_name.

How to Hide Files and Folders Using Batch Files

If you forget the list of files/folders and you have hidden them under a drive, you can use the graphical interface method to show/hide hidden files as mentioned in the articles listed above.

No matter what kind of content you keep on your computer, you’ll always find reasons to hide certain files and folders. Perhaps you have important documents and videos that you want to keep under wraps, or you simply want to prevent users from accidentally deleting certain files if you’re sharing your PC with other people.

For whatever the reason it might be, on Windows 10, you can quickly hide a file or folder in two different ways, including using File Explorer or using the attrib command using Command Prompt.

In this Windows 10 guide, we’ll walk you through the easy steps to hide a file and folder on your computer. In addition, you’ll learn the steps to access those hidden items as needed.

How to hide files and folders using File Explorer

The easiest way to keep content hidden is using File Explorer.

  1. Open File Explorer.
  2. Navigate to the file or folder you want to hide.

Right-click the item and click on Properties.

Click Apply.

Click OK.

  • Click OK again to complete the task.
  • Once you’ve completed the steps, the hidden items will not be visible anymore, because by default Windows 10 doesn’t show hidden files.

    If you want to access your hidden items you’ll have to type the complete path to the hidden folder or file you want to open and press Enter. For example: C:UsersadminDesktopFilesSecret FilesGreat Secret.txt.

    Or you can open File Explorer, click on the View tab and make sure to check the Hidden items option. Then you can browse your hidden items as you would normally do with other content.

    At any time, you can make the files and folders visible again by using the same steps mentioned above, but this time on step 4 make sure to clear the Hidden option.

    How to hide files and folders using Command Prompt

    Alternatively, you can also use Command Prompt to hide files and folders on your computer.

    1. Open Start.
    2. Do a search for Command Prompt and click the result.

    Type the following command to navigate to the items you want to hide and press Enter:

    In the command replace the path after cd with the path to your file or folder.

    Type the following command to hide a folder or file and press Enter:

    attrib +h “Secret Files”

    In the command replace “Secret Files” with the name of your folder or file. Quotation marks are only necessary when there are spaces in the name.

    If you’re trying to hide a folder with files and subfolders, which you also want to keep hidden, then you’ll need to use these steps as well.

    While in Command Prompt type the following command to navigate inside the hidden folder and press Enter:

    cd “Secret Files”

    In the command replace “Secret Files” with the name of your hidden folder.

    Type the following command to hide all files and folders inside the hidden folder and press Enter:

    After completing the steps, the items with the hidden attribute will no longer be visible.

    Making hidden files and folders visible again

    If you change your mind, you can use the following steps to remove the hidden attribute for files and folders.

    1. Open Start.
    2. Do a search for Command Prompt and click the result.

    Type the following command to navigate to the hidden items location and press Enter:

    In the command replace the path after cd with the path to your file or folder.

    Type the following command to make the items visible again and press Enter:

    attrib -h “Secret Files”

    In the command replace “Secret Files” with the name of your folder or file. Quotation marks are only necessary when there are spaces in the name.

    In the case you also set the hidden attribute for files and subfolders inside of a folder, then do the following to remove the attribute.

    While in Command Prompt type the following command to navigate inside the hidden folder and press Enter:

    cd “Secret Files”

    In the command replace “Secret Files” with the name of your hidden folder.

    Type the following command to remove the hidden attribute from all files and folders inside the folder and press Enter:

    Which method do you prefer to hide files and folders on Windows 10? Tell us in the comments below.

    More Windows 10 resources

    For more help articles, coverage, and answers on Windows 10, you can visit the following resources:

    Update 6: Microsoft wants all of TikTok, but Trump’s order may interfere

    The Financial Times reports that as part of negotiations, Microsoft is now inquiring whether it can buy all of TikTok, instead of just the business in the US., Canada, Australia, and New Zealand. This new plan would include India and Europe (and excluding China).

    Apple responds to Project xCloud iOS block, Microsoft kicks back

    With Microsoft’s Project xCloud streaming platform locked out from iOS devices, Apple doubles down on App Store restrictions.

    Review: Intel-based Acer Swift 3 is a different beast than the AMD version

    The Intel-based Acer Swift 3 (SF313-52) isn’t just a hardware switch from AMD. A 3:2 display with great color, Thunderbolt 3, and better battery life are some of the perks that come with this model.

    10 must-have apps for any new PC

    You just purchased a new PC and set it up, and now you’re looking for some great apps. Look no further. These are the best apps for your new Windows 10 PC.

    Author: MajorGeeks.Com
    Date: 07/21/2020 10:13 PM
    Size: 2 KB
    License: Freeware
    Requires: 10|8|7
    Downloads: 560 times
    [ Comments Screenshots ]

    TIP : Click Here to Repair/Restore Missing Windows Files

    [email protected]
    [email protected]

    Report a Bad Link

    Show or Hide Hidden Files Folders or Drives contains the batch files to show or hide hidden files, folders, drives, or protected operating system files.

    To show or hide hidden files, folders, drives, or protected operating system files, we can simply edit the registry, but then you need to restart File Explorer. Using our batch files, you can make the changes, then restart File Explorer automatically.

    Download Show or Hide Hidden Files, Folders, or Drives and extract the four files.

    Right-click the file for what you want to do, and click Run as administrator:

    Show Hidden Files Folders Drives.bat
    Hide Hidden Files Folders Drives.bat
    Show Protected Operating System Files.bat
    Hide Protected Operating System Files.bat

    Your screen will flash as Explorer restarts, and the changes are applied.

    Video tutorial:

    This tweak is included as part of MajorGeeks Windows Tweaks.

    Supposing that you hide the important files and folders in your computer by means of downloaded softwares, you can think about hiding them by using the built-in Command Prompt. Moreover, after they are hided through cmd, they can be displayed again. And this text will show you how to hide or unhide files and folders with cmd immediately.

    Video guide on how to hide or unhide files and folders with CMD:

    Hide and unhide folders with Command Prompt:

    1. Hide folders

    Example: Hide a folder named “Documents” in Disk C.

    How to Hide Files and Folders Using Batch Files

    Way 1: Directly use an attrib command to hide the folder.

    Step 1: Simultaneously press Windows key and R key to open Run dialog box, input cmd and click OK to open Command Prompt.

    How to Hide Files and Folders Using Batch Files

    Step 2: Input “attrib +s +h c:documents” (without double quotation marks) in the Command Prompt window and click Enter.

    How to Hide Files and Folders Using Batch Files

    Tips: In this attrib command, “+” stands for setting an attribute, “s” represents system file attribute and “h” means hidden file attribute. Moreover, “c:” is the drive letter and “documents” is the folder name. By analogy, if you want to hide a folder in another hard disk, you can use the attrib command by changing the drive letter and folder name.

    For instance, suppose you would like to hide a folder titled “Summary” in E disk, you can input “attrib +s +h e:summary” (without double quotation marks) in the Command Prompt and press Enter.

    How to Hide Files and Folders Using Batch Files

    Way 2: Enter the disk directory and then use an attrib command to hide the folder.

    Example: Hide a folder called “Summary” in Disk E.

    Step 1: Type e: in the cmd and tap Enter to go to Disk E directory, as shown in the following picture.

    How to Hide Files and Folders Using Batch Files

    Step 2: Input attrib +s +h summary and press Enter.

    How to Hide Files and Folders Using Batch Files

    Tips: Use this attrib command through changing the folder name (referred to “summary”) to hide another folder.

    2. Unhide Folders.

    Accordingly, there are two methods to unhide folders.

    Method 1: Directly use an attrib command to unhide the folder (referred to “Documents” folder in Disk C).

    Input attrib –s –h c:documents and hit Enter.

    How to Hide Files and Folders Using Batch Files

    Note: In the attrib command, “-” means clearing an attribute.

    Method 2: Go to the disk directory in cmd and then use an attrib command to unhide the folder (“Summary” folder in E disk).

    Step 1: Enter e: and tap Enter.

    How to Hide Files and Folders Using Batch Files

    Step 2: Input attrib –s –h summary and press Enter.

    How to Hide Files and Folders Using Batch Files

    Hide and unhide files with Command Prompt:

    1. Hide files

    Example: Hide a txt file named “goals” in Disk E.

    Enter attrib +s +h e:goals.txt and tap Enter.

    How to Hide Files and Folders Using Batch Files

    Tips: “goals.txt” refers to the full name of the document (including file extension name). So, you can change the file name and use the attrib command to hide other files.

    2. Unhide files.

    Input attrib –s –h e:goals.txt and press Enter to unhide the “goals” document.

    How to Hide Files and Folders Using Batch Files

    Now, you can try the above methods and see if they work well in your computer.

    Related Articles:

    iSunshare is dedicated to providing the best service for Windows, Mac, Android users who are in demand for password recovery and data recovery.

    How to Hide Files and Folders Using Batch Files

    With the tremendous amount of data flowing through your system every day, you might need to make very sure to safeguard your data from any unauthorized access. You must take care to hide and lock your files or folders.

    Files storage may be online or it could be stored on your personal hard drives in the computer. For online information, you may simply safeguard and protect it using firewalls, network security, strong passwords of your online storage portals and so forth.

    But when your files are stored on your hard drives on the computer, you might want to make sure to safeguard your valuable information and data from any online malicious software, viruses, and malware and most importantly from any unauthorized physical access. In fact, physical access would be much more vulnerable as compared to the online threat as it will surely give the user complete access to all of your data, right?

    So, what should be the proposed solution?

    This Article will tell you a very simple way to protect your physical data stored on your computer using batch file programming. The program will help you to hide and lock your files or folder with a password.

    Have you got any privates files on your computer or some images that you don’t want anyone else to access?

    Let’s jump straight into few simple steps to set up the hide and lock folder basic software on your computer yourself.

    1. Open any text editor like Notepad, Notepad++. The text allows you to simply feed your code to the folder you want to hide.
    2. Now you need to use this code, simply paste the code in your text editor and save it with any file name and extension ‘.bat’. For example, the file name could be ‘private.bat’.

    How to Hide Files and Folders Using Batch Files

    title Folder XYZ

    if NOT EXIST Locker goto MDLOCKER

    echo Are you sure u want to Lock the folder(Y/N)

    if %cho%==Y goto LOCK

    if %cho%==y goto LOCK

    if %cho%==n goto END

    if %cho%==N goto END

    echo Invalid choice.

    echo Folder locked

    echo Enter password to Unlock folder

    if NOT %pass%== secret goto FAIL

    echo Folder Unlocked successfully

    echo Invalid password

    echo Locker created successfully

    1. After saving the code file as a .bat extension, now you need to simply double click on the file, and what it dies is that It will create a directory in the same location of the file. (The name of the directory you want to create can be altered from the code itself, in our code we have named the directory as ‘Locker’)
    2. Once the directory is created, now transfer your files or folders in the directory.
    3. After transferring the files which you want to hide inside the directory, double-click again on the ‘Private.bat’ file which will pop up a prompt for you with a question ‘Are you sure you want to lock the folder?’

    How to Hide Files and Folders Using Batch Files

    And, the directory will no longer be visible ie it’s hidden now.

    1. Now, to restore the directory again for use, simply double-click on the ‘Private.bat’ file and it will open a prompt for you who says ‘Enter your password to continue’, Type in the password you have mentioned during the setup of the directory. In our case, the password is ‘secret’.
    2. Once, you enter the password, it will make the directory visible again for your access.

    How to Hide Files and Folders Using Batch Files

    Pretty simple and easy, right?

    In case, if you feel stuck at any point during the setup of the process or the code, please do let us know in the comments section below, and we would be more than happy to assist you.

    But, there is one thing that everyone should really know that this method of hiding files is not very secure when it comes to real threat. However, for a simpler purpose like hiding your personal files like photos, documents, videos on your personal computer, the tip is a good one.

    This batch script only allows you to secure files with a password, and so the only person who knows the password can access those files, but for tech-savvy people and anyone who is good with programming or could understand the script of the batch file program can crack the password. But understanding batch file programming is what will really be needed to crack any batch script based password secured files or folders.

    The trick will work fine on just any window machine, however, we will always suggest you to not just stick to one trick, rather learn the fundamentals of batch file programming so as to learn many such more tips and tricks.

    Stay tuned to us to learn more such new and amazing stuff.

    Posted by Vicky | Oct 14, 2018 | Windows | 0 |

    How to Hide Files and Folders Using Batch Files

    Hello friends in earlier post i’ll explaind you a best method of hiding media files on Android device without any external application, like that in this post i’l explain about how to hide files & folders on windows without any softwares, so read this post completely upto the footer,

    .Bat Extension

    This is one of the type of file extension used for batch processing in windows, it works in all version of windows.It is a kind of script file with several commands one by one, this batch file executes with command.exe application in windows operating system.The batch file is also called Batch Processing

    that means it makes to executes repeated and complicated operation by anyone with onetime scripting.This batch file has a extension of .bat and you can edit this file with Notepad application. Now by using this file extension method we are going to hide the files & folders in your windows computers, before going to procedure first make the below initial changes.

    Initial Setup Procedure

    • Firstly go to Control Panel > Personalization > Folder option.

    How to Hide Files and Folders Using Batch Files

    • In folder option select View Tab and untick option Hide Extension for known file types , and also select the Don’t Show Hidden files,folders and drivers & tick the ‘Hide protected operating system files‘ option and click apply.

    How to Hide Files and Folders Using Batch Files

    Basic Batch file commands

    The batch file is full of commands with one by one line, as per that command application executes each command one by one.The command starts with ECHO following by line displays the message in command box, and the command @ECHO OFF makes the user commands hidden in command box.This will be the basic starting commands & they are more commands used to make changes in windows computers automatically using this Batch processing.

    File Hiding Batch Commands

    Now copy & paste the below commands in notepad and save as .bat file extension.

    How to Hide Files and Folders Using Batch Files

    After copying this commands in notepad, save with your desired name with extension .bat

    How to Hide Files & Folders

    • First copy the above batch commands & paste in notepad & save as .bat file extension.
    • Move that .bat extension file where you want.
    • Now double click on that .bat extension file & a new command window will open.

    @howtogeek
    September 9, 2016, 10:24am EDT

    How to Hide Files and Folders Using Batch Files

    If other people use your Linux PC from time to time, you can hide files and folders from prying eyes. But if they know the obvious way to view hidden files, you can use a more secretive method: compress those files and hide them in an innocent looking image file.

    Before we begin, create a directory containing an image file (.png or .jpg), and the file or directory you want to hide. For our example, we are going to hide a directory of files, called secret_files. Our original image file is htg-site.png. Use the cd command to change to the directory containing the image and the file or folder to be hidden.

    How to Hide Files and Folders Using Batch Files

    We will create a compressed file containing the directory we want to hide in the image. To do this, we type the following command at the prompt and press Enter.

    In the above command, -r will include all subdirectories within the specified directory in the compressed file. The name of the compressed file is secret.zip and the name of the directory to be compressed is secret_files .

    When you are returned to the command prompt, type ls and press Enter. You will see the secret.zip file (or whatever you named your compressed file) listed.

    How to Hide Files and Folders Using Batch Files

    Now, we’re going to concatenate the compressed file and image file, and save that as a new image file using the cat command. In our example, we type the following command at the prompt and press Enter.

    The original image file must be listed first before the name of the compressed file you want to insert into the image file. Then, we direct (>) the original image file and the compressed file into a new image called secret.png .

    How to Hide Files and Folders Using Batch Files

    When you use the ls command at the prompt, you’ll see the new image file, secret.png , that is hiding the compressed file. You can display the new image using any image viewer or editor. An easy way to view the image is to double-click on it in Nautilus. It will automatically open in the default image viewer.

    Once you have your new image that is hiding your file or folder, you can delete the compressed file and original file or folder, using the rm command. In our example, we typed the following two commands to delete our compressed file and original folder.

    How to Hide Files and Folders Using Batch Files

    To access the hidden file or folder again, make sure you’re in the directory containing the image in which your file or folder is hidden. Then, extract the file or folder from the image by typing the following command and pressing Enter.

    Substitute the name of your image file for secret.png in the above command.

    How to Hide Files and Folders Using Batch Files

    Our secret_files directory is available again, and when we change to that directory ( cd secret_files/ ), and list the files ( ls ), we see our original files.

    How to Hide Files and Folders Using Batch Files

    This is not necessarily the most secure way to protect your files. It just makes them less obvious to someone poking around your system. You can encrypt your zip files to make them more secure.

    Hiding files or folders from the File Explorer view is a great way to protect files from being deleted or found. Installing a third-party program can do the trick, although if you’re trying to hide files from someone, it could tip them off. In this guide, we look at hiding files or folders using the Command Prompt or PowerShell. We recommend you use the Command Prompt as one command (list hidden files or folders) does not work in PowerShell.

    TIP : Hard to fix Windows Problems? Repair/Restore Missing Windows OS Files Damaged by Malware with a few clicks

    Before we get started, keep in mind that some files and folders shouldn’t be hidden including operating system files. Your best bet is to create a folder to hide to avoid any possible problems.

    1: Hide Files or Folders

    Open the Command Prompt or PowerShell. You’ll want to know the path to the files or folders you want to hide. In our examples, we’ve created a folder called Hidden as an example.

    To hide an individual file or folder in attrib +h C:PathToTheFileOrFolder.

    As you can see, our Hidden folder is now, well, hidden. We are assuming that you have show hidden files, folders, and drives off. Otherwise, they will still show up, but with a lighter colored folder as seen here:

    Once you understand how to hide and unhide files and folders, see step 4 for how to Super Hide them.

    To hide all files and subfolders in your target location, type in attrib +h C:PathToTheFileOrFolder /s /d.

    2: List Hidden Files or Folders

    At some point, you might want to see the files or folders you’ve hidden. In this case, using the CD command to go to the hidden folder and type in dir /a:h. Note: This does not work in PowerShell.

    3: Unhide Files or Folders

    To unhide an individual file or folder type in attrib -s -h C:PathToTheFileOrFolder

    To unhide all files or folders type in attrib -s -h C:Hidden* /s /d

    4: Super Hide Files or Folders

    The only downside to this method is anyone who knows how to show hidden files, folders, and drives can still find your hidden files.

    To completley hide files or folders (Super Hide) use attrib +s +h C:PathToTheFileOrFolder.

    Now your files are hidden even if hidden files and folders is enabled.

    To unhide your files or folders, use attrib -s -h C:PathToTheFileOrFolder.

    Download Best Free Android Apps, Games, Widgets, Themes and Find Tips.

    Search This Blog

    How To Hide Gallery Files and Folders on Android Using Hide File App

    Discover best free android app to hide files and folders and also learn how to hide folders on android using this best hide file android app to secure your privacy with password protection.

    Hide Files and Folder on Android:

    • Get link
    • Facebook
    • Twitter
    • Pinterest
    • Email
    • Other Apps

    Labels

    • Get link
    • Facebook
    • Twitter
    • Pinterest
    • Email
    • Other Apps

    Comments

    Thank you very much for your help.You have wrote a nice and described article which gonna help me.Actually this was what I looking for.
    THANKS

    It’s my pleasure that this article helps you.

    Post a Comment

    POPULAR POST!

    Best Apps For New Sony Xperia Z2

    Are you thinking to download the best cool apps for your new Sony Xperia z2? Download best new Sony Xperia z2 apps below to enjoy all features of your shiny new Xperia.
    Sony Xperia z2 new and shiny android smartphone avail us to enjoy each and every possible android app available in android market. Among these android apps, there are some nice and cool apps specially dedicated only for new Sony Xperia z2 android phone. To know this special apps, you should read through this post and you may also download this apps from the provided download links.

    • Get link
    • Facebook
    • Twitter
    • Pinterest
    • Email
    • Other Apps

    How To Protect Your Android Phone From Steal

    • Get link
    • Facebook
    • Twitter
    • Pinterest
    • Email
    • Other Apps

    How To Transfer File To Android Using Free File Sharing Apps (QieZi Folder)

    • Get link
    • Facebook
    • Twitter
    • Pinterest
    • Email
    • Other Apps

    How to choose the best microSD card for your Android Phone

    Want to buy MicroSD card? Read detail review to buy best microSD card suits your Android Phone.
    With the passage of time Android device users (regardless of whether we talk about mobile or tablets) we become more demanding with both specifications and storage. A fairly common and well-seen solution is the inclusion of a microSD card slot that, by the way, makes life easier for many people.

    Now, some people have doubts about which microSD cards to buy, as there are usually several features that the user can not differentiate and which one is the most suitable for the use he wants to give. With this in mind, for those who are confused and undecided, we will explain how you can choose the microSD card that best suits your use.
    You may also be interested to read: How To Transfer File To Android Using Free File Sharing Apps (QieZi Folder).

    A review of the different types of microSD cards

    First of all, it is best to start by knowing the different types of microSD cards and their writing sp…

    If you have to do some repetitive tasks on a daily basis, you probably know how tedious it can get, especially if you have to follow multiple steps over and over again. Zipping files is definitely one of those types of tasks, but the good news is that it doesn’t have to be. There are solutions out there that will automate compressing files, and they’re done simply by creating a script file (otherwise known as a batch file) and entering some commands. Here is how to automate this process using 7-Zip and IZArc.

    How to Hide Files and Folders Using Batch Files

    Downloading and Installing 7-Zip and IZArc

    You can download both of these by going to their respective download pages and choosing the option that is suited to your device and operating system.

    Installing 7-zip

    1. Open the .exe file you downloaded from the official site.
    2. Choose a destination folder. The default one is C:Program files, but you can change it by clicking on the three dots.
    3. Click Install.
    4. And when the process is finished, click Close.

    Installing IZArc

    1. Download the IZArc Command Line Add-On.
    2. Open the .exe file to begin the installation.
    3. Click Next.
    4. Read (or pretend to read) the License Agreement and then select “I accept the agreement”, and click Next.
    5. Choose a destination folder. The default one is in C:Program files, but you can change it by clicking on the Browse.
    6. Click Next.
    7. Click Install.
    8. Click Finish.

    Test the Installation

    This is done to make sure the command prompt can find the application. If it can’t, you need to install the app again.

    How to Hide Files and Folders Using Batch Files

    1. Hit the Start button and type “cmd” on your keyboard.
    2. Type “cd C:Program Files7-zip” or “cd C:Program Filesizarc”
    3. Type “7z” or “izarcc”
    4. If it is working properly you will see something like “Usage: 7z ” and “Usage: izarcc ”.

    Create or Modify Batch Files

    This guide will use pre-prepared batch files. These files will compress all of the contents from the dedicated folder into a zipped archive, and include the date of compression in the archive name. It will also move the zipped archive to the storage folder, while removing the source files (optional). Zipdir will be the name of the location that contains the source files, and movedir will be the location to which the batch file will transfer the archives.

    Using the Batch File with 7-zip

    How to Hide Files and Folders Using Batch Files

    1. Go to this link
    2. Copy and paste the text to Notepad.
    3. Name the file “test7ip.bat”. Replace “_.txt” with .bat by pressing right-click on the file and clicking Rename.
    4. Make two folders and name them “zipdir” and “movedir”.
    5. Modify the paths as instructed in the script.
    6. Place the files you want to compress into “zipdir”
    7. Use the command “7za a -tzip “%movedir%%myfolder%_%TODAY%.zip” -r “%zipdir%*.*” -mx5”
    8. “7z” begins the process of compressing the files.. “a” commands the addition of files to the compressed folder.
    9. “tzip”sets the compression folder type. The standard format is a zip file.
    10. “%movedir%%myfolder%_%TODAY%.zip”is the name of the zipped folder.
    11. “%zipdir%*.*”represents all the files in the “zipdir” folder ready for zipping. Files from all folders in “zipdir” are included in the zip folder.
    12. “mx5” sets the compression type to a zip mode with a compression level of five.

    You can customize the batch file to suit your needs.

    Using the Batch File with IZArc

    1. Go to this
    2. Copy and paste the text to Notepad.
    3. Name the file “testizarc.bat”. Replace “_.txt” with .bat by pressing right-click on the file and clicking Rename.
    4. Make two folders and name them “zipdir” and “movedir”.
    5. Modify the paths as instructed in the script.
    6. Place the files you want to compress into “zipdir”
    7. Use the command “izarcc -a -r -p -cx “%movedir%%myfolder%_%TODAY%.zip” “%zipdir%*.*””
    8. “Izarcc” begins the process of compressing the files.
    9. “a” moves files to the compressed folder.
    10. “r” re-applies the algorithm to all folders in zipdir.
    11. “p” saves the file paths so the folder retains the same arrangement.
    12. “cx” modifies the compression to the highest level.
    13. “%movedir%%myfolder%_%TODAY%.zip” is the name of the zipped folder.
    14. “%zipdir%*.*” are all the files in the “zipdir” folder ready for zipping.

    That’s All There Is to It

    As you can see, you don’t have to type any lines of code by yourself as there are already prepared batch files that can do the job for you. Just follow the guide exactly and you will be zipping faster than ever before!

    While macOS always seems complete to me in more ways than one, there are a few shortcomings that disappoint me at times. If the unavailability of simple dark/light mode and Turbo Boost toggles seem hard to explain, the lack of a straightforward way to conceal confidential files has never failed to baffle me. In an age where an extra layer of shield against prying eyes has become the need of the hour, there has to be a quick way to keep sensitive files under the wraps, hasn’t it? So, what’s the workaround? Turns out, there is a viable trick to hide or unhide files and folders with Terminal on Mac. If you feel comfortable using Terminal commands, you may find this hack quite helpful. Let’s unravel it!

    Hide, View, and Unhide Files and Folders with Terminal on macOS

    Clearing out a few doubts right at the beginning is always better, especially when you are dealing with a hack like this one.

    Is There Any Complexity involved?

    Nope. So, long as you have easy access to the Terminal commands (or remember them), you can quickly keep any files out of sight on your Mac. If you ever want to revert and make those files show up again or view the hidden files, you will have to go through the same route – albeit with different commands (direct path can also work for viewing). As these commands work pretty well and that too without any complexities, you can master them without any hassle. And yes, you also don’t need to be running the latest iteration of macOS to use this hack.

    1. Launch Terminal app on your Mac. You can use the Spotlight search to dive into the app right away.

    How to Hide Files and Folders Using Batch Files

    2. Now, enter the below-given command. Make sure not to press the Return key as yet.

    How to Hide Files and Folders Using Batch Files

    3. Next, give space after “hidden”.

    How to Hide Files and Folders Using Batch Files

    4. Next up, navigate to the file or folder you wish to hide and then drag it to the end of the command in the Terminal window.

    How to Hide Files and Folders Using Batch Files

    How to Hide Files and Folders Using Batch Files

    5. Finally, press the Return key.

    How to Hide Files and Folders Using Batch Files

    Voila! The fill has disappeared on your Mac.

    Note: While this command comes into effect immediately, at times it might not work as expected. In this case, you might need to relaunch the Finder to make the file disappear.

    View Hidden Files and Folders on macOS

    Wondering where has the file gone and how you can access it? Well, it’s just as straightforward.

    1. Open the Terminal app on your macOS device and then enter the following command.

    2. Hit the Return key. Now, you can view all of your hidden files in Finder.

    How to Hide Files and Folders Using Batch Files

    Unhide Files or Folders on macOS

    If you wish to unhide the specific files you had concealed earlier, you can do so with ease.

    1. Launch the Terminal app on your Mac and then enter the below-given command. Be sure not to hit the Return key as yet.

    2. Next, make sure to include a space at the end of the command. Then, drag the file to the end of the command and then press the Return key.

    Check out, your file has once again begun to show up in the Finder. That’s pretty much it!

    Hide and Unhide Files on Mac with Ease

    So, these are the quick ways to keep all of your private files away from the prying eyes. While they work efficiently, I wish Apple offered an easier way to hide files on the macOS operating system. It would be better if the option existed inside the customization setting or the contextual menu itself. Well, I say it because I don’t think everyone likes to indulge with Terminal commands – barring a few pro-Mac users. What’s your take on it? Feel free to shoot your thoughts in the comments below.

    How to Hide Files and Folders Using Batch Files

    If you have some private files that you would rather tuck away from prying eyes, then hiding them is one of the best options you have. The files will be made invisible so that people cannot stumble upon them and open them. Though this will not be enough to hide files from people who are knowledgeable about the issue, it is an easy way to stop curiosity from picking. So, how can you hide files on macOS Sierra and how do you show those hidden files when you need to.

    Hiding files or Folders on macOS Sierra

    Simply put, to hide a file or folder you will be required to set a hidden attribute for it. The procedure for hiding a file is exactly the same as that of hiding a folder. Here is a step by step guide on how to go about this.

    1. Press Command and Space keys simultaneously. Type the word “Terminal” and press Enter. This opens a terminal window.

    How to Hide Files and Folders Using Batch Files

    2. In the newly opened terminal window, type in the following command.

    Press the space key.

    3. Drag the file or folder you would like to hide from the Finder and drop into the terminal window.

    How to Hide Files and Folders Using Batch Files

    Hidden File or Folder on macOS Sierra

    4. The path of the selected file/folder will be shown on the terminal window. Press Enter.

    How to Hide Files and Folders Using Batch Files

    The path of the selected File and Folder

    When this process is finished the file/folder will diaper from the finder and you will not see it by default.

    Show All Hidden Files and Folder

    You will need to access the hidden file or folder soon or later. Your best option is to use the Terminal application. Through this app, you will be able to use a command line to enter the UNIX commands. You will be able to access the MacOS Sierra and able to make changes to how it functions by default.To do this, follow the following steps.

    1. To open the Terminal app, click on Go then Utilities then double click on the Terminal app

    2. Input the following commands pressing Enter after every line:

    defaults write com.apple.finder AppleShowAllFiles YES
    killall Finder

    How to Hide Files and Folders Using Batch Files

    Show All Hidden Files

    3. Restart the Finder by pressing Option and Control buttons simultaneously. Click on the Finder icon in the Dock and choose Relaunch. You will only need to do this if the Finder does not restart automatically.

    It is important to understand what the commands you just typed in instruct to the computer to do. The first line instructs the computer to show all files including the hidden ones on the Finder. The second command instructs macOS Sierra to close then reopen all the Finder Windows. This way, when the Finder relaunches, it has all the files and folders including the ones that had been hidden.

    Unhide a File or Folder on macOS

    1. To open the Terminal app, click on Go then Utilities then double click on the Terminal app

    2. In the newly opened terminal window, type in the following command

    Press the space key.

    3. Drag the file or folder you would like to unhide from the Finder and drop into the terminal window then press Enter.

    How to Hide Files and Folders Using Batch Files

    Unhide a File or Folder on macOS

    To sum it all up, though hiding files on macOS Sierra are not as straight-forwards as it is in Linux and Windows OS. With the above steps, you can enjoy privacy on your Mac without having to set up passwords which may prove challenging to remember all of them. Use of passwords is your only other option instead of hiding files and folders.

    By Alisa | Follow | Last Updated December 10, 2019

    Summary :

    How to Hide Files and Folders Using Batch Files

    This tutorial offers a step-by-step guide for how to hide a folder or file in Windows 10 by using CMD (Command Prompt). You can also learn how to show hidden files Windows 10 using CMD. To recover deleted or lost files on Windows 10 computer, a top free file recovery software from MiniTool is also provided.

    If you want to hide some important folders and files on Windows 10 to keep them away from others’ sight, you can use Windows Command Prompt (cmd.exe) tool to easily and quickly hide a file or folder in Windows 10.

    Check below how to hide a folder/file in Windows 10 using CMD, as well as check how to unhide or show hidden files in Windows 10 with Command Prompt when you want.

    How to Hide a Folder (File) in Windows 10 Using CMD

    Step 1. Open Windows Command Prompt

    At first, you should open the cmd.exe. You have several ways to open it. The most common way is to press Windows + R keys at the same time to open Window Run dialog, type cmd in Run window, and press Ctrl + Shift + Enter to open elevated Command Prompt in Windows 10.

    Step 2. Hide a Folder or File Using Attrib Command

    Then you can type the command line below in Command Prompt window, and hit Enter to hide the target folder in Windows 10.

    attrib +h c:documents

    In this command, “+” means setting an attribute, “h” refers to the hidden file attribute. You should replace “c:documents” with the folder path and name you’d like to hide, e.g. f:work. You can right-click the file or folder and choose Properties to check its location.

    How to Hide Files and Folders Using Batch Files

    Alternatively, you can also type the command line cd file or folder path in Command Prompt, and hit Enter to go to the file/folder location, for instance, cd f:.

    Then type the command line attrib +h work and hit Enter to hide the Work folder in F partition.

    How to Hide Files and Folders Using Batch Files

    Tip: To hide a file in Windows 10 with CMD, you should also include the file extension after the file name in the command line, e.g. f:work.xls.

    Thus, you won’t see the hidden file or folder in your Windows 10 computer.

    How to Unhide a Folder in Windows 10 with CMD

    To show hidden files Windows 10, you can still use the attrib command in Command Prompt to easily realize it.

    Step 1. Follow the same instructions above to enter into Command Prompt window.

    Step 2. Type the command line attrib -h f:work and hit Enter to make the hidden Work folder in F partition visible again. You should replace “f:work” with the exact path of the folder you’d like to unhide. If it’s a single file you want to unhide, you should also add the file extension after the file name in the attrib command.

    How to Hide Files and Folders Using Batch Files

    Best Free Way to Recover Deleted/Lost Files on Windows 10

    Here, we also introduce an easy-to-use, clean and free data recovery software to you to help you recover any lost or deleted files on Windows 10/8/7 computer.

    MiniTool Power Data Recovery helps you recover data from computer local hard drive, external hard drive, SSD, USB flash drive, SD card, and more with ease. Its free edition allows you to recover up to 1GB data for free.

    How to Hide Files and Folders Using Batch Files

    Free pen drive data recovery. Easy 3 steps to recover data/files from pen drive for free (incl. corrupted, formatted, not recognized, not showing pen drive).

    Easy user guide: You can just connect your device and launch MiniTool Power Data Recovery, choose the target device in its main UI, and click Scan button, it will automatically scan the data on the target device. After the scanning is completed, you can easily find your lost/deleted files and click Save button to store the recovered files to a new destination.

    Do you have some private data on your phone that you want to hide from others? It can your personal documents, private photos and videos, or some other important files. A screen lock isn’t sufficient to protect your data as anybody who knows the password can easily access it.

    How to Hide Files and Folders Using Batch Files

    The only way you can prevent unauthorized access to your data is by hiding it. In our previous guide, we have shared various methods to hide files on Android phone. You can use an app for this task, but here we have a more simple method for you.

    This tutorial will guide you how to hide folders on your Android phone without even using any third-party application. You can move all your private files in a particular folder and then hide it. After that, no one will be able to access that folder except you. Let’s see how is this possible!

    1. Hide folder by adding dot symbol

    You can easily hide any folder on Android by adding a dot symbol before its name. Once you do that, the files within that folder will not be accessed by the gallery, media players and other apps. For example, if the folder contains your photos, they will no longer be visible in the gallery.

    Apart from that, the folder will also disappear from the file manager and thus it will be protected from unauthorized access. Now to rename the folder, you have to use a file manager app. Either you can use your phone’s built-in file manager or download any third-party app.

    This step-by-step guide will show you how to hide folders on Android –

    1. Open the built-in file manager of your phone or you can download Astro File Manager app from Google Play Store.
    2. Now go to the directory where the folder is located. You can also create a new folder and move all the files in it that you want to hide.
    3. After that, tap on the folder to select it and then click the Rename option.

    How to Hide Files and Folders Using Batch Files

    How to Hide Files and Folders Using Batch Files

  • Finally, click the OK/Rename button to save the changes and you’ve done it.
  • Once you hide the folder, you will find that it is no longer visible in the file manager. Moreover, the files that you have saved within that folder will not appear in the gallery and other apps.

    How to access the hidden folder

    Now you may ask how you can access the folder. It’s very simple. You just need to enable the “Show hidden files” option in the file manager. This option is available in the settings. Follow these steps –

    First, open the file manager app and tap the menu button (three dots at the top-right or top-left corner of the screen). After that, click the Settings option. Here you will find an option named “Show Hidden Files” – simply, enable it.

    How to Hide Files and Folders Using Batch Files

    Now go to the directory where the folder is saved and you will find it there. Please note that your folder isn’t secure if the “Show hidden files” option is enabled in the file manager. So we will recommend you to keep it off and also lock the file manager. You can read our guide on how to lock apps on Android.

    Note: In case, if you want to unhide the folder again, simply remove the dot symbol that you have added in its name.

    2. Hide folder using nomedia file

    There is another simple way you can hide folders on Android by using the nomedia file. Nomedia is basically a blank file with “.nomedia” as the file name. This file is used to exclude the folders that you don’t want to be scanned by the apps on your phone.

    When you place a nomedia file in a folder, the files of that folder get hidden. For example, if there is a video, then it will hide from the gallery. However, it is important to note that the nomedia file doesn’t hide the folder from the file manager apps – it just hides its content.

    Do it in File Explorer or use Windows PowerShell

    How to Hide Files and Folders Using Batch Files

    Renaming a file on Windows 10 is simple. You just right-click and select Rename. But doing this for a few dozen or a few hundred files gets tedious. Thankfully, it’s easy to batch rename files in Windows 10 using File Explorer, PowerShell, or the Command Prompt.

    Batch Rename Files in Windows 10 Using File Explorer

    If you have a batch of pictures or other files that share something in common, you can rename all the files to use the same basic file structure.

    For example, you can rename all your Disney World vacation photos from 2019 to ‘Disneyworld Vacation Photos 2019.’ When you batch rename files in Windows 10 using File Explorer (also known as File Manager), each file receives the new name with a number at the end, such as (1), (2), and so on.

    Open File Explorer and navigate to the folder that contains all the files you want to rename.

    How to Hide Files and Folders Using Batch Files

    Select View > Details in the Layout group in the ribbon. This lets you view the entire file name for each file in the folder.

    How to Hide Files and Folders Using Batch Files

    Select all files in the folder by selecting the first file, holding the Shift key, and then selecting the last file. Or you can select Ctrl+A to select all files as well.

    How to Hide Files and Folders Using Batch Files

    Select Home > Rename from the Organize group in the ribbon. This will change the first file to a field so you can type the new file name. Type the file name you’d like to use to rename all the files.

    How to Hide Files and Folders Using Batch Files

    When you press Enter, you’ll notice all the other selected files received the same name with a number at the end to differentiate each file.

    How to Hide Files and Folders Using Batch Files

    Using File Explorer to batch rename files in Windows 10 is just as fast as renaming a single file, with just a few extra clicks.

    If you mistyped the name or changed your mind about renaming all the files, you can press Ctrl+Z to undo your last rename operation.

    Batch Rename Multiple Files With PowerShell

    If you prefer using a command line tool to rename all your files, PowerShell is an excellent tool.

    Using the last example, you can use PowerShell to rename all the files so that the first word of the file name is “Our” instead of “My”.

    Select the Start menu, type Powershell, and select Windows PowerShell to open the app.

    How to Hide Files and Folders Using Batch Files

    Navigate to the directory where your files are stored by using the cd command to navigate folders.

    How to Hide Files and Folders Using Batch Files

    Once you’re in the correct directory, type the command:

    Then press Enter.

    How to Hide Files and Folders Using Batch Files

    How the parameters for this function work:

    • Dir: Sends all files in the folder to the rename-item command
    • rename-item: A PowerShell command to rename files
    • $_.name: Symbolizes each of the file being replaced
    • -replace: Tells PowerShell that the action to take on each file is to replace the name
    • “My”,”Our”: The first word in quotes is the word in each title to replace, and the second word is what you want to replace it with

    The Dir command in PowerShell has a lot of functionality.

    The rename-item command in PowerShell has other syntax you can use. For example following rename-item with “$_ “Preface – $_” will add “Preface – “ to the front of every filename.

    When the command finishes, you’ll notice all your files have been renamed in the manner you specified.

    How to Hide Files and Folders Using Batch Files

    Batch Rename Multiple Files With Command Prompt

    You can also rename multiple files using the command prompt and the ? (question mark) wildcard.

    Launch the command prompt and navigate to the folder where your files are stored.

    How to Hide Files and Folders Using Batch Files

    Type the command

    Then press Enter.

    How to Hide Files and Folders Using Batch Files

    Now you’ll see all the files have been renamed, keeping the first 12 original characters of the file name and adding “-Vacation” at the end.

    How to Hide Files and Folders Using Batch Files

    Using the command prompt is an easy way to rename files quickly, keeping a unique portion of the file name while adding something descriptive at the end.

    Whether you choose to batch rename files in Windows 10 using File Explorer, PowerShell, or Command Prompt really depends on the original file names and how you want to rename them.

    How to Hide Files and Folders Using Batch FilesI like keeping my folders tidy. In Windows XP, it’s an easier task because there aren’t many things in the user directory that can make things look cluttered. However, in Vista, there are three things that I just can’t stand looking at: the AppData folder and the ntuser.dat.LOG files. There is simply no need for me to mess with the ntuser.dat.LOG files, and I hardly need to access files in AppData. I can’t delete them, so I hide them.

    Just a note before going on: The following instructions rely on a setting in Vista. The key is to have “Hide protected operating system files (Recommended)” checked. By default, this setting is already checked, but you can double check by clicking on “Organize” on any Windows Explorer window, and choosing “Folder and Search Options“. On the “Folder Options” window, click the “View” tab and it should be as shown below.

    In some cases, I need access to files that are hidden by default and I’ve set Vista to show hidden files and folders, hence setting the “Hidden” attribute on folders and files isn’t sufficient.

    Moving on: Set the “System File” Attribute for files you want to hide

    Now that you’ve set Vista to hide system files, we can use the command prompt to make folders and files have the “system file” attribute.

    1. Open a Command Prompt window. (Start->All Programs->Accessories->Command Prompt). For some files, this must be run with Administrator privileges . In that case, right click on Command Prompt, and click “Run as administrator.”
    2. By default it should already open in the “C:Users[your_username]” directory.
    3. Type “attrib +S +H AppData” to hide the AppData directory.
    4. Type “attrib +S +H ntuser.dat.LOG1” to hide ntuser.dat.LOG1.
    5. Type “attrib +S +H ntuser.dat.LOG2” to hide ntuser.dat.LOG2.
    6. Look at your user directory in Windows Explorer and they should not be showing anymore. (A refresh might be required to see the changes)

    This should also work on any folder or file, and I don’t find any reason why this wouldn’t work in Windows XP or Windows 2000, but I could be wrong. If you’re using another version of Windows, getting to the “Folder Options” might be a little different.

    Also, be cautious when deleting folders and files. Remember the ones you’ve hidden!

    If you ever need to undo this, simply substitute the “+S +H” with an “-S -H” in the instructions above.

    Question

    If I use this below command, I am able to delete only the files and files in sub-folders older than 10 day,

    forfiles /p “D:TestingSample” /s /d -10 /c “cmd /c del /s /q @file”

    Answers

    Your command is ok for files, for folders you need to do another command:

    forfiles -p “D:TestingSample” -d -10 -c “cmd /c IF @isdir == TRUE rd /S /Q @path”

    If this post solved your question, please mark as an answer, or if it helped your quest, please vote as helpful. Thank you.

    F. Schubert
    System Administrator

    MCP | Microsoft Certified Professional
    MCTS 70-640 | Microsoft Certified Technology Specialist: Windows Server 2008 Active Directory, Configuration
    MCTS 70-642 | Microsoft Certified Technology Specialist: Windows Server 2008 Network Infrastructure, Configuration
    MCTS 70-643 | Microsoft Certified Technology Specialist: Windows Server 2008 Applications Infrastructure, Configuring
    MCTS 70-680 | Microsoft Certified Technology Specialist: Windows 7, Configuration

    File renaming apps range from the simple to the complicated. They allow you to rename multiple files in one go based on a single or criteria or on a more complex one. You can select files based on the date they were created and their type. You can also set a renaming syntax for how the files should be renamed. If your file renaming needs are much more simple, i.e., you just want to rename all files in one folder to something more meaningful, you don’t need a app. Windows has you covered with a fairly intelligent renaming logic built into the rename function. Here’s how it works.

    Open the folder that you want to rename files in. Select all the files you want to rename. Use the ‘Shift’ and ‘Control’ keys to make selection easier.

    Once you’ve selected the files that need to be renamed, right-click one of them. From the context menu, select ‘Rename’. Alternatively, you can hit the F2 function key or the ‘Rename’ button in the Windows Explorer ribbon.

    Enter the new name for the file. For example, ‘Screenshot’ and hit enter. All selected files will be renamed ‘Screenshot’ with incremental numbers added to them. You will effectively have files named as a series of files e.g., screenshot (1), screenshot (2), etc.

    How to Hide Files and Folders Using Batch Files

    You can’t add any modifiers to the renaming convention that Windows comes with. It will always add numbers in brackets to the file name you specify.

    If you want to rename only a certain file type, use the sort options in Windows Explorer to sort the files by type and then select the ones you want to rename.

    The default renaming feature in Windows obviously isn’t going to put any apps out of business. It is basic whereas apps built specifically for renaming files and folders come with a slew of more useful features. This works in Windows 7 and above for both files and folders.

    How to Hide Files and Folders Using Batch Files

    Moving and arranging files around on your computer can be time-consuming. In Windows 10, it is faster to create a batch file (.bat) and move multiple source files and subfolders to any destination folder. You can define the properties of such a .bat file in advance and transfer files later at your ease.

    A .bat file is a well-known yet little used secret of Windows which can execute different kinds of commands with actionable results.

    This is the latest 2020 guide for creating a batch file in Windows 10 from scratch. We will also show how to utilize such a .bat file to move files from any source to a destination folder.

    Create a Batch File from Scratch

    You can create a .bat file in any Windows 10 folder of your choice. To create it from scratch, simply go to the destination folder of your choice, right-click and create a new .txt file.

    How to Hide Files and Folders Using Batch Files

    Once the Notepad file is created, rename the extension from .txt to .bat.

    How to Hide Files and Folders Using Batch Files

    Ignore the “file will become unusable” message due to change in file name extension and click Yes. An empty batch file has now been created with no contents.

    How to Hide Files and Folders Using Batch Files

    The .bat file is prominently visible in the folder. It can be deleted, copy-pasted, renamed, and transferred to any other folder.

    How to Hide Files and Folders Using Batch Files

    Use Batch File to Create Folders and Subfolders

    You can use a .bat file to create separate folders and subfolders whose contents and properties remain connected to the .bat file. No matter which PC location you move the .bat file to, the folders and subfolders will follow. Any contents saved in these folders can simply be moved by relocating the Master .bat file.

    Right-click the created .bat file to “Edit using Notepad” and enter the following to create folders using folder names.

    The purpose of @echo off is to disable the display prompt. This way you won’t have to deal with the Command prompt, although it’s internally connected to .bat file processes. If your folder name should contain a space, put it inside quotes. Save the file and exit Notepad.

    How to Hide Files and Folders Using Batch Files

    As soon as you click the .bat file, it will execute the command to create the new folders.

    How to Hide Files and Folders Using Batch Files

    To create subfolders in any folder, modify the above code as shown here. Save the file and exit Notepad.

    How to Hide Files and Folders Using Batch Files

    As shown here, the subfolders have been created.

    How to Hide Files and Folders Using Batch Files

    Move Files from One Folder to Another Using Batch Files

    You can use .bat files to move files from any folder on your Windows 10 to a destination folder of your choice. All you need is a proper folder path to complete the transfers. The best way to know a folder’s path is to right-click and select “Properties” followed by “Location.”

    How to Hide Files and Folders Using Batch Files

    As shown here, we will move all the contents of “FolderA” to “FolderB.” The command is as follows:

    Here, *.* is a wildcard that tells Windows 10 to copy all the files in the source folder. If any part of the folder path has a folder name with spaces, you need to enclose it within quotes.

    How to Hide Files and Folders Using Batch Files

    Save the file and exit Notepad.

    The entire contents of one folder have been moved to another by clicking .bat file.

    How to Hide Files and Folders Using Batch Files

    If you want to move only select files, the code can be slightly modified as shown below.

    How to Hide Files and Folders Using Batch Files

    If you wish to move only specific file types between the folders, for example, JPG files, modify the code as shown below.

    For example, to move all .jpg files, use the code below:

    How to Hide Files and Folders Using Batch Files

    As per the code, only JPG files have moved in this example.

    How to Hide Files and Folders Using Batch Files

    You can replace the .jpg with .pdf, .png, or any other file type you want to move.

    In this guide you have learned how to create a batch file from scratch and move files and folders around your computer. Every time you click on a .bat file, it will move the contents at the target location. It’s so simple!

    Do you also know that you can batch edit images abd batch rename files in Windows? Click the links to find out how

    Related:

    Leave a Comment Cancel reply

    Popular Posts

    How to Capture a Scrolling Screenshot in Windows 10

    12 Useful Windows 10 Registry Hacks to Optimize Your Windows 10 Experience

    Latest Windows 10 Update Problems and How to Fix Them

    How to Create a Virtual Machine from Your Existing Windows 10 PC

    14 Awesome Screensavers for Windows 10

    Affiliate Disclosure: Make Tech Easier may earn commission on products purchased through our links, which supports the work we do for our readers.

    A little more secure and doesn’t use third-party programs

    It seems like people just can’t get enough of the how-to guides on creating hidden folders or locked folders in Windows. I’ve already written two guides on how to hide a folder, one by using a very simple built-in feature of Windows and another by using some Windows scripts. In the latter article, I also mentioned a free program that you can use called Folder Hide to completely remove a folder from visibility. Lastly, I’ve written about hiding an entire drive letter in Windows too.

    But there’s yet ANOTHER way you can hide a files and folders, which is similar to the first post I mentioned above, but is a little bit more secure. It actually involves using the command prompt and a built-in Windows function to change certain attributes of a file or folder. Once the attributes have been changed, the files cannot be seen by the system.

    The reason I like this method is because it does not involve any third-party software, which people may notice, and it’s not as simplistic as the first method I wrote about where you simply change the properties of the file or folder to hidden and anyone can easily un-hide the folder by configuring the Windows Explorer setting to “Show Hidden Files and Folders”.

    Here’s how you can create a hidden folder in Windows for free that is fairly secure:

    1. Go to Start, Run and then type in CMD to open the command prompt window

    How to Hide Files and Folders Using Batch Files

    2. Now navigate to the parent folder of the folder you want to hide. If you want to hide a file, navigate to the folder where the file is located. For example, I want to hide a file in C:Test, so I would type in the following:

    CD C:Test

    3. Now type in the following command, replacing the word filename with the name of the file you want to hide.

    attrib filename +s +h

    And that’s it! Your file or folder is now completely hidden! It won’t show up in My Computer, it won’t show up if you browse via the command prompt and it won’t even show up if you select “Show all Hidden Files and Folders“.

    If you want to un-hide the folder, you simply follow the same steps, expect now you’ll run this command:

    attrib filename -s -h

    You can use this command for both files and for folders. In our example, if I wanted to hide C:Test, I would go one level above to C: and then type in:

    attrib Test +s +h.

    So you’ll notice that I had said this procedure is “fairly secure” above and the reason for that is you can still un-hide the hidden files or folders in a very simple way. When we change the attributes of the file/folder in the above method, we are actually just making it a hidden protected system file. In order to show protected system files, all you have to do is go to Folder Options, View tab and uncheck the Hide protected operating system files box.

    How to Hide Files and Folders Using Batch Files

    Now if you were to browse into that directory with the hidden file or folder, you would see it listed there with a greyed out icon. As mentioned previously, all of these are very simplistic ways to hide data in Windows, but they can come in handy for short-term situations or for hiding content from kids, etc. It’s also rare for people to un-hide system protected files whereas a lot of people do enable the Show Hidden Files and Folders option in Windows.

    So now you have four different ways to hide a file, folder or drive in Windows! If you have any questions, post a comment. Enjoy!

    Founder of Online Tech Tips and managing editor. He began blogging in 2007 and quit his job in 2010 to blog full-time. He has over 15 years of industry experience in IT and holds several technical certifications. Read Aseem’s Full Bio

    How to Hide Files and Folders Using Batch Files

    T here are billions of users who are using Android now. Android is the platform which implements more features than any other operating system. Now in this post, I am going to tell you How To Hide Files & Folder In Android. We all require privacy in our contents. As there are many media like our personal pictures, videos, and recording which we never want to share with any other persons.

    But we do share our phone with our friends, family members and natives for some of the reasons. And at that time, our privacy gets in emergency and we perpetually want something that secures our content and only we can access our content. So in this post, I will tell you the method to hide files and folder in your Android. With that, you can easily hide selective files and folder which you don’t want to share with others.

    How To Hide Important Files And Folders In Android Without Any App

    To hide data in android follows the steps given below:-

    Step 1. Mostly, every Android has file explorer in it, but if you don’t have any, I recommend you to download Es File Explorer on your Android device. Now open your file explorer or file browser.

    Hide Files And Folder In Android Without Any App

    Step 2. Now search or find your file or folder which you want to hide from others.

    Hide Files And Folder In Android Without Any App

    Step 3. Now select the file or folder and click on rename option.

    Hide Files And Folder In Android Without Any App

    Step 4. Now there add “.” at the start of the name. (For ex if the folder is videos then rename it as .rename ).

    Hide Files And Folder In Android Without Any App

    Step 5. As we know Android is Linux based and it will think that this is system file and it will hide that file by default settings of the operating system. Now if you want to open that file or folder then just select Show hidden Files/folder option in your file explorer.

    Hide Files And Folder In Android Without Any App

    Step 6. If you want to make that hidden file unhidden back then just rename the file by removing “.” from the name.

    Hide Files And Folder In Android Without Any App

    By this, all your files and folders which you have renamed will get hidden from your file explorer and in your gallery too. Hence, this will defend your data permanently in your Android. And you will have no longer tension of illegal access to your content.

    Using ES File Explorer To Hide Images from Gallery

    Step 1. First of all, you need to download and install ES File Explorer on your Android device.

    Hide Files And Folder In Android

    Step 2. Now open the app, you will see the screen like below.

    Hide Files And Folder In Android

    Step 3. Simply locate the folder where you kept images and you want it to be hidden.

    Hide Files And Folder In Android

    Step 4. Now simply create a new folder there and name it as “.nomedia”

    Hide Files And Folder In Android

    Step 5. Simply exit the app and check your Gallery and the desired folder will be hidden.

    That’s it you are done! Now if you want to reshow it on your Gallery you need to remove the “.” in front of the folder no media. Save it and restart your phone.

    Hide Files And Folder In Android

    When you are using Microsoft Windows 10 there are certain issues that can really be annoying. One of these points is that Microsoft Windows 10 automatically hides certain files that are usually seen on another OS. So the important files that are available on the drive are not deleted by mistake. Deleting those files might affect the workability of the whole system.

    If you are a total nerd person and like playing with important files on the drives, you should know how to unhide folders in Windows 10. So, this article we will talk about how to unhide files and folders in Windows 10.

    Unhiding Files and Folders in Windows 10

    Are you sure you want to play with hidden files in Windows OS? If your answer is yes, please be with us until the end of the article. We will be featuring 3 methods to unhide files and folders in Windows 10.

    Method 1: Unhide Files and Folders in Windows Using File Explorer

    One of the easiest methods of unhiding files from Microsoft Windows 10 is by using the explorer.

    Step 1: Go to the Start button and click on to the File Explorer.

    How to Hide Files and Folders Using Batch Files

    Step 2: You will get multiple options from which you need to select the View.

    How to Hide Files and Folders Using Batch Files

    Step 3: You will see the Hidden items checkbox which you need to select to view the hidden files on your Windows 10.

    How to Hide Files and Folders Using Batch Files

    Method 2: Unhide Folders in Windows 10 Using Control Panel

    If you aren’t comfortable to use the File Explorer option on your computer, you can use the Control panel to show hidden files and folders in Windows 10.

    Step 1: Select Control Panel by going to the Start button.

    Step 2: Select File Explorer Options from the list and then select the View tab.

    How to Hide Files and Folders Using Batch Files

    Step 3: You will get a huge list of options and scroll down until you see Hidden Files and Folders and then select Show hidden files, folders and drives. This will allow you to see all the hidden files.

    There is also an option in the list which states Hide protected operating system files, check this box to make sure you are not playing with system files.

    How to Hide Files and Folders Using Batch Files

    Method 3: Unhide Folders in Windows 10 Using Registry Option

    It may take you a little expertise in order to do it via the registry, but here’s an easy process to see hidden files in Windows 10 using registry.

    Step 1: In order to bring up the Run dialogue box, you need to hold the Windows and R keys. Once the Run window is up, type “regedit” and hit Enter.

    How to Hide Files and Folders Using Batch Files

    Step 2: Now you need to navigate to the list of locations: HKEY_CURRENT_USER – Software – Microsoft – Windows – CurrentVersion – Explorer – Advanced. Click on Hidden and Right Click and choose Modify and set Value Data to 1 and click OK which will allow you to see the hidden files and folders. If you set the same to 2 it will not show you any kind of hidden folders.

    How to Hide Files and Folders Using Batch Files

    If you want to see the files and folders of the operating system too, you have to set the ShowSuperHidden and turn the value to 1 by right-clicking and choose Modify as you did above. If you don’t wish to see these folders, just change the value to 2.

    How to Hide Files and Folders Using Batch Files

    These are all the methods that will help you to unhide files and folders in Windows 10. If you have any questions following the above tutorial, do let us know in the comments section below.

    If you have personal files and folders that you don’t want to be visible to all users of your PC or you want to hide them so that they do not get deleted accidentally then here is the step by step guide for you.

    Hiding Files and Folders Using File Explorer

    Step 1: Open the Windows File Explorer.

    Step 2: Navigate to the file or folder that you want to hide.

    Step 3: Right-click the item (file or folder) and then click on Properties.

    Step 4: Check the hidden option in attributes section.

    Step 5: Click Apply to activate the new setting.

    Step 6: If you are hiding a folder with files and sub folders, make sure to check the “Apply changes to this folder, sub-folders, and files” option.

    Step 7: Click OK to close the settings and another time OK to finish.

    Once you are done with these steps, the file or folder will not be visible anymore. Windows 10 doesn’t show the hidden files and folders in Explorer or file menus by default. If you need Windows 10 to show your hidden files, open the file explorer, go to view and check the “Hidden items” box.

    Karim Buzdar

    About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. You can reach Karim on LinkedIn

    Windows includes an advanced security feature called Encrypting File System (EFS). It allows users to store encrypted files and folders to protect them from unnecessary access. Other user accounts cannot access your encrypted files. This is the strongest protection in Windows that can be used to protect individual files and folders without encrypting the entire drive.

    How to Encrypt / Decrypt Files and Folders using Advanced Properties

    1. Right-click on the file or folder, and selectВ PropertiesВ from the context menu.

    2. In the Properties dialog, click theВ AdvancedВ button on theВ GeneralВ tab.

    How to Hide Files and Folders Using Batch Files

    Step 3: Click to check the option Encrypt contents to secure data.

    How to Hide Files and Folders Using Batch Files

    Decrypt files and folders: Clear the Encrypt contents to secure data check box, and then click OK.

    How to Hide Files and Folders Using Batch Files

    Step 4: If prompted, select either Apply changes to this folder only or Apply changes to this folder, subfolders and files according to what you want.

    How to Hide Files and Folders Using Batch Files

    When the first you encrypt a file or folder, you may be prompted to back up the file encryption key to helping avoid permanently losing access to encrypted data. Encryption will be disabled for a folder, if you compress the folder, move it to a ZIP archive, or copy to a location that does not support NTFS encryption with EFS.

    How to Hide Files and Folders Using Batch Files

    How to encypt / decrypt files and folders using Cipher command

    Step 1: Press Win+X, hit A to open Command Prompt (Admin).

    Step 2: Execute one of the following commands as needed.

    To encrypt a file or foler, type in the following command, then hitВ Enter.

    cipher /e “PATH” (Replace PATH with the full address of the file / foler including the extension.)

    How to Hide Files and Folders Using Batch Files

    To encrypt the folder and other files and folders inside it, you will have to use this command,

    cipher /e/s:”PATH”

    How to Hide Files and Folders Using Batch Files

    To decrypt a single file, run the command cipher /d “full path to the file”.

    To decrypt a folder, type the following command: cipher / d “full path to the folder”.

    To decrypt a folder that contains subfolders and files, type: cipher /d / s: “full path to the folder.”

    Ethical Hacking Tutorials опубликовал(а) заметку.

    RECOVER HIDDEN FILES AND FOLDERS DUE TO VIRUS

    How to solve Folders Showing as Shortcuts, Hidden in USB/Memory-Card/HDD

    To remove such virus follow the steps

    1. Open administrative command prompt.
    2. Go to your pen-drive drive letter. Suppose your USB disk is G:. Type G: and press Enter
    3. Now type the below command to remove system file, hidden read-only attribute
      attrib -s -h -r /s /d *.*
    4. Delete Autorun.inf from USB – Disk.
    5. This makes all files visible and you are now able to delete them .
    6. del *.lnk
    7. Now to remove the shortcuts from pen-drive , Check the size of any One or Few Shortcuts, all be same.
    8. Delete suspicious files, on errror check task manager for process with same name or any suspicious process and end it.
    9. Open Explorer and right Click on Pen-drive , Click Open.
    10. Search with Advance Search for all files of same size in Pen-drive.
    11. Select All and Delete


    By connecting flash drives to the affected computer, often it shows flash drive containing just some folder’s shortcuts. Sometimes it shows nothing though drive’s properties show it has files in it. Even we get some inaccessible folder or file. This type of problem may also seen in our local drives (HDD partitions). Even paid anti-virus is unable to resolve those folders, they just scan and detect The AUTORUN worm which one will execute all programs. Then our important files remain hidden. Hidden folders and Shortcuts by the Autorun Worm

    Here we will see how can we solve this problem by using command line and batch file. Though the batch file is nothing but the executable file contains command lines. So solving the hidden and shortcut problem of USB or drives, we must have the administrator privilege as we will execute something.

    Using Command line: To solve/fix the folder’s hidden or system file, the easiest way is to run a command line. You can apply this command to USB and local drive as well, need to change the drive_letter. Go to Run, type cmd and hit enter. In command prompt just type:

    attrib -h -s -r -a /s /d drive_letter:*.*

    Be sure you’ve typed the drive letter (e.g. j:,h: or D:) instead of “drive_letter” in the command line. My USB drive letter is J: and my command should looks like: Command for unhide system-hidden files on a drive All files and folders will be normal and you should be able to delete the shortcuts, created by the virus.Command line details: Here atrib=attribute, “-“=remove attribute/permits, h=hidden s=system, r=read-only, a=archive, /s=sub directory, /d=directory, drive_letter=the letter of the drive shown in windows explorer (e.g. j:,h: or D:) and *.* is called the wild card for all files.If you don’t like to be a “command Ninja” then see below. USB, MicroSD, MiniSD or other Mmory Cards issue:

    1. Connect your USB or memory card to the PC or laptop.

    2. Copy these lines and paste it into a “new text file” @echo offattrib -h -s -r -a /s /d drive_letter:*.*

    3. In the 3rd line give the drive letter name (Example: J or K or L etc.) instead of “drive_name”

    How to Hide Files and Folders Using Batch Files

    Today, privacy is a hot topic. The technique of hiding files and folders comes in handy when you are using a computer which is used by more than one person. This article will show you a techie way to hide files and folders in Windows 7 using command line.

    Install Network Printers Via Batch File or Command Line in Windows 7/8 and Server 2008

    How to Hide Files and Folders Using Batch Files

    As a desktop administrator I like to automate as many tasks as possible. I had a need to automate the installation of network printers in a Windows 7 / Server 2008 environment and after some digging through manuals found a solution to installing TCP/IP printers via a batch file. I’ll outline the VBS script we’ll leverage for port creation and also the using of rundll32 to silently install print drivers and create printers.

    Multi-Threaded Robocopy by First-Level Subfolder

    How to Hide Files and Folders Using Batch Files

    Robocopy is a wonderful tool for synchronizing directories, migrating servers, or just generally copying data on or between Windows systems. The built-in version of Robocopy on Windows 7/Server 2008 R2 introduced a multi-threaded copy option; however, this is not available in earlier editions of Windows. Read on to discover how to do multi-threaded Robocopy operations […]

    Windows 7: Mounting and Unmouting WIMs Using a DISM Batch File Menu

    This tech-recipe will include a batch file that lets you mount and unmount .WIM files in Windows 7 Professional / Ultimate and Windows Server 2008. I will also explain some the basics of WIM files and discuss how to manage them using DISM from the command prompt.

    How to run your own PowerShell scripts / cmdlets

    By default, Microsoft has prevented the running of custom PowerShell scripts, a.k.a. cmdlets, by setting the PowerShell “ExecutionPolicy” to “Restricted”. This can be changed easily.

    7-Zip: How to list contents of a folder and subfolder of zip files without extracting (Win XP,Vista,7 and Command Line)

    This tech-recipe will explain how to use 7-Zip to create a text file (tab delimited) listing of the contents of a zip file. You can run this .bat file in a directory and get the listings of every ZIP file contained in that directory and any sub-directories. Keep reading for the commands and explanation.

    Batch File: How to retrieve Asset Tag / Serial Number for a Dell computer

    This guide is a quickie on how you can use a batch file to retrieve asset tag and / or serial number information for a Dell desktop or laptop. This recipe assumes that the Dell computer has had its asset tag entered into the BIOS. Note, not all computer motherboards use this field in WMIC […]

    Batch File Scripting: How to export, find and replace, and reimport a registry key (XP, Win2k3, Vista, Windows 7)

    This recipe is designed for the more operating system savvy persons and for those who work in an app deployment corporate setting. Many times when you work in IT and in an app deployment team you run into situations where you need to either find a registry key and find a key and replace with a new entry. However, sometimes there are cases where you know the main registry entry key but are not sure which entries below it may need to be changed. Lets find a solution!

    Windows XP/Vista: Use a Batch File for Quickly Restarting explorer.exe

    Explorer.exe is the user shell on your Windows system (taskbar, desktop, etc.) and periodically it requires a restart to resume proper functionality. Additionally, if you do a lot of tweaking to your system registry like I do, it’s much easier to restart explorer.exe to reload the registry instead of restarting the entire system. By creating […]

    XCOPY command : Using the /EXCLUDE flag

    This recipe will briefly explain how to use the /EXCLUDE flag with XCOPY. This can be very handy if you need to backup a full directory but do not need or want specific file types or folder or file names.

    Batch Files : Get users default printer via registry (WinXP)

    This is another quickie recipe for you admins. This recipe shows how to get the current user’s default printer via the registry and output the information to a text file via a batch file and in turn combine the result files into a larger file to then import into excel.

    XP Batch Files: Copy images from camera to pc and organize by date

    This is a quickie recipe on how to create a batch file that will copy all of your photos/videos from a memory stick or camera onto your pc’s my pictures folder (c:documents and settingsuseridmy documentsmy pictures). this batch file will show you how to setup a prompt and using a basic if/then statement.

    Here’s my situation. A project has as objective to migrate some attachments to another system.

    These attachments will be located to a parent folder, let’s say ” Folder 0 ” (see this question’s diagram for better understanding), and they will be zipped/compressed.

    I want my batch script to be called like so:

    I’m using 7za.exe as the command line extraction tool.

    What I want my batch script to do is to iterate through the ” Folder 0 “‘s subfolders, and extract all of the containing ZIP files into their respective folder.

    It is obligatory that the files extracted are in the same folder as their respective ZIP files. So, files contained in ” File 1.zip ” are needed in ” Folder 1 ” and so forth.

    Here’s my script:

    I guess that I would also need to change the actual directory before calling 7za.exe e %zippedFile for file extraction, but I can’t figure out how in this batch file (through I know how in command line, and even if I know it is the same instruction “cd”).

    EDIT #1

    The below-given answers are both close to what I need. But for some unknown reasons, sometimes the batch file, when I give a parameter, just won’t do anything and bring me back to prompt.

    I haven’t written a batch file for about 15 years, so I completely forgot about the logic behind, etc.

    Someone can help, please?

    EDIT #2

    It seems, without any certitude, that the batch file script can’t handle folder names with space character. Can one of you confirm and propose a solution for counter this please?

    I’m going completely blind here. Thanks for your help! =)

    EDIT #3

    I need the solution to be fully recursive as I don’t know the directory structure against which this will be used. Sorry for not having mentioned before.

    EDIT #4

    I have been inspired by all of your answers and other’s to come up with the following (which works at 98%):

    The only trouble I get is that it wants to create, to stick with my example, File5 subfolder in order to extract the zipfile into. This is no problem when extracting the actual File5.zip file. But when it digs deeper in the directory structure to subfolders, since it has gotten the last File5 filename, it wants to create File5 subfolder into Folder 1Folder A , for example, to extract File1.zip . Here’s an example of structure:

    So, considering the above-illustrated structure, it wants to create File5 in Folder A , when it should intend to create File1 instead.

    Thanks for your support and help! =)

    Anyone’s help is gratefully appreciated.

    EDIT #5

    I have accepted @Dennis Williamson’s answer since his solution fulfills what I have asked on the first place. Otherwise, if one is looking for a fully recursive solution, please follow the link provided in my own answer, which will bring you to the StackOverflow website.

    While Windows Explorer is the best file explorer when it comes to browsing files that we have saved on our hard drives, viruses make use of certain properties in Windows Explorer to disable some important functions. These viruses usually come from USB Flash drives and disable the functions like hidden files can’t be unhidden again etc.

    In this situation, the good old DOS can be very helpful as we can use DOS commands to unhide files and folders. This is also beneficial for cleaning the virus from the thumb drive.

    To unhide a file from command line, go to Run –> cmd.

    This will open DOS command prompt. Now go to the parent folder where the file or folder resides which we want to unhide. To do this, will need to use the cd command (Change Directory). If you want to know about how to use the cd command, run the following command in command prompt:

    cd /?

    This will open help for the cd command. When you are in the desired folder, run the following command:

    attrib -r -a -s -h *.*

    Let’s discuss what this command is doing. Attrib command is used to add or remove attributes to a file. The attributes include read-only, archive, system, hidden etc. To add an attribute, we will need to use a plus (+) sign and to remove an attribute minus (-) sign is used. You can see in the above command that we are removing certain attributes.

    So what are the attributes that are being removed? Here’s the explanation:

    -r will remove the read-only attribute of the specified file.

    -a will remove the archive attribute of the specified file.

    -s will remove the system attribute of the specified file.

    -h will remove the hidden attribute of the specified file.

    *.* means that any file with any extension will be processed with this command. So all the files in the directory where this command is run will be unhidden and will become read-write. You will be able to edit and delete the files.

    If you want to unhide all folders + subfolders and files, run the following command:

    attrib *. -h -s /s /d

    If you simply want to display a list of hidden files and folders and not change their attributes, run the following command:

    dir/ah

    I hope this will help people in troubleshooting their systems using the command line.

    When you need to allow other people to use your phone and want to keep certain files and folders secret, you can lock the files and folders with a password, PIN, pattern or fingerprint. Samsung Galaxy phone users can refer to these steps to lock files on Samsung mobile. This method however can’t help you lock a folder on Samsung mobile phone, file names can’t be encrypted, locked files are still visible, they can be copied, transferred, cut, renamed, deleted. If you want to keep sensitive files out of the wrong hands, you can also hide the files on your Galaxy device. Hiding files and folders in My Files app on Samsung mobile phone is very easy. It doesn’t require the use of third-party applications, what you need is merely renaming the files or folders in the file manager app for Samsung mobile.

    How to hide files and folders on Samsung mobile phone?

    Open the My Files app on Samsung phone, tap Device storage, then browse to the file or folder you want to hide. Long press on the file or folder to select it, touch the Menu (three vertical dots) at the top-right corner, choose Rename from the drop-down menu list. The Rename dialogue pops up. Just put a period at the beginning of the current name and save, the rename file or folder will become invisible in My Files app on Samsung phone.

    Hiding private photos, videos on Samsung mobile phone using LOCKit app

    If you want to hide sensitive photos, movies and prevent others from accessing certain apps on your Android phone, you may need a professional security app. Check out this guide to hide and lock photos, videos, apps on Android phone using LOCKit free security app.

    How to show hidden files and folders on Samsung mobile phone?

    Launch the My Files app on Samsung phone, touch the Menu (three vertical dots) at the top-right corner, choose Settings from the drop-down menu list.

    How to Hide Files and Folders Using Batch Files

    Tap to check the “Show hidden files“, you will then be able to find all hidden files on Samsung phone.

    How to Hide Files and Folders Using Batch Files

    Windows 10 supports hidden files across the system. This feature can, per the name, be used to hide files which you don’t want to be visible when browsing through folders. Hidden files is a simple feature which mostly offers one-click controls to show and hide hidden content.

    How to Hide Files and Folders Using Batch Files

    If you want to hide a file, simply right-click it and open the “Properties” dialog from the context menu. Under the Attributes section, check the “Hidden” option and click Apply. The file will immediately be hidden from view. You can select multiple files and folders and hide them all at once using the same technique.

    How to Hide Files and Folders Using Batch Files

    To make your hidden files visible in File Explorer, click the “View” tab on the ribbon control at the top of the screen. In the “Show/hide” section, check the “Hidden items” option. If there’s any hidden files or folders in your current view, they’ll now be visible. Windows uses a lighter colour for hidden file icons, so you can see at a glance which resources are hidden. To make hidden files invisible again, just clear the “Hidden items” checkbox.

    How to Hide Files and Folders Using Batch Files

    That’s about it for hidden files. Just remember that making hidden files visible will reveal lots of files and folders you couldn’t see before. These are used by the system and are hidden for a reason – deleting or modifying them might make your PC inoperable!

    How to Hide Files and Folders Using Batch Files

    It’s also worth mentioning there’s another class of hidden files which are even more sensitive. These are used by Windows internals and are not displayed, even when hidden files are visible. If you really want to, you can view them by clicking “File” in File Explorer and choosing “Options” from the menu. Switch to the “View” pane and scroll down until you see the “Hide protected operating system files (Recommended)” checkbox.

    How to Hide Files and Folders Using Batch Files

    After clearing this option, you’ll need to acknowledge a warning that the files are protected because they’re required by Windows. If you go ahead and make them visible, you must ensure you don’t modify or delete them. You can make the files invisible again by restoring the checkbox – just remember this option is independent of the regular hidden file controls.