Q&A for How to Lock a Folder Using a Batch File

Return to Full Article

Search
Add New Question
  • Question
    How do I re-lock the file?
    Community Answer
    Double-click the file again. It will ask for a password. Enter the password, and you're done!
  • Question
    How do I reset the password?
    Community Answer
    Right-click on the .bat file. After doing so, click 'edit.' You can change the code through this.
  • Question
    My folder will not re-lock when typing Y. What do I do?
    Community Answer
    Are you sure you're typing everything correctly? What Windows version are you using?
  • Question
    Could an unauthorized person right click on locker.bat and edit the password?
    Community Answer
    Yes. They can edit the password easily as long as they know the batch programming language.
  • Question
    How do I remove a batch file if I locked a folder?
    Community Answer
    If the folder is system, use the attrib -s /f1/folder command to delete the system attribute.
  • Question
    How do I copy the code from a batch file?
    Community Answer
    Right click and press Edit in the menu and in Notepad, Right click and click Select All then Right click again then Copy this time.
  • Question
    How do I automatically lock the batch file?
    Community Answer
    You can't lock the batch file. But you can make it read-only via its properties.
  • Question
    How do I create an application with no software?
    Community Answer
    You can't, the software is what you use to write the code, You can use CMD as a more direct way, but CMD is still software.
  • Question
    How do I get rid of a "private.bat" file I created? I've tryed to Delete from the folder I saved it in but the file keeps re-installing itself every time I use my Photos App.
    CageyCat
    Top Answerer
    It could be that "Photos" uses a file of that name. Try this. Write down the name of the folder where the file sits now. Copy "private.bat" to a new folder on a thumb drive. Then, right click and select rename, such as "private_old.bat". Try opening "Photos" App and see if that program remakes a "private.bat" file. Whether it does or not, you should be safest to copy the _old version to the same folder on that thumb drive-- just in case.
  • Question
    If the password can be changed while the folder is locked, how is it secure?
    Tony Vovers
    Community Answer
    This small program is just hiding the files in a hidden folder. It is a nice little tool to give a minimal level of security on personal files. In fact, there are many ways to "break" the process, including being able to physically find the files with Windows Search if the file name is known. However, for a top-level hiding or protection, it does a fine job and does exactly what the author has suggested.
Ask a Question

      Return to Full Article