Recommended Posts

Open Notepad or any other text editor. Copy the code below and save as locker.bat. Don't forget to change the password (the field in red). Open locker.bat, it will create a folder called Private. Put the files that you need to hide in this folder. Run locker.bat again, and confirm. When you want to access the folder, just ran locker.bat and enter the password. Run it again to hide it.

  Quote
cls

@ECHO OFF

title Folder Private

if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK

if NOT EXIST Private goto MDLOCKER

:CONFIRM

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

set/p "cho=>"

if %cho%==Y goto LOCK

if %cho%==y goto LOCK

if %cho%==n goto END

if %cho%==N goto END

echo Invalid choice.

goto CONFIRM

:LOCK

ren Private "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"

attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"

echo Folder locked

goto End

:UNLOCK

echo Enter password to unlock folder

set/p "pass=>"

if NOT %pass%== password here goto FAIL

attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"

ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private

echo Folder Unlocked successfully

goto End

:FAIL

echo Invalid password

goto end

:MDLOCKER

md Private

echo Private created successfully

goto End

:End

Regards

Link to comment
https://www.neowin.net/forum/topic/576805-folder-locking-without-software/
Share on other sites

Keep the batch file on a thumbdrive or something. Copy it onto the computer to unlock, and then shred it.

If you're serious about security, use an encryption program. If you need to hide things from average Joe Hacker, look into steganography. If you want to hide things from CIA/NSA, keep a can of thermite and a short fuse on top of your computer case.

  • 3 weeks later...
  Quote
A question I want to know is what happen if I delete or move the file locker.bat after I hided the folder "private"??

Can I access the private again??

If you have hidden & system files/folders shown in explorer. You can simply rename it (it appears as Control Panel.{...} ) to turn it back into an accessible folder.

Edited by voidpharoh
  • 1 month later...
  • 2 weeks later...
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Steam finally has a native app for Apple Silicon Macs by Taras Buria About half a decade ago, Apple released the first Apple Silicon-based Macs with ARM processors, kicking off its chip revolution and severing ties with Intel. These chips were received to critical acclaim, and many developers optimized their apps for ARM relatively quickly—not Valve, though. Valve is only now getting ready to ship a native Steam client for macOS. The latest Steam Beta update is finally optimized for Apple Silicon, which means the app no longer relies on Rosetta 2, Apple's translation layer that emulates x86 applications on ARM-based chips. It is hardly surprising that it took Valve so long to optimize its client for Apple Silicon, considering Apple's low market share on Steam. Valve's monthly Hardware and Software Survey (check out the latest data here) shows that macOS has only 1.85% of all users, which is hardly what you call a priority. The survey's page itself makes it clear that the results help developers decide where to invest their time and effort. In recent years, Apple Silicon has made big strides in terms of graphical performance, which has made Mac a better gaming platform than before. Apple is also not giving up on its ongoing effort to make gaming on Mac more attractive. Every macOS release introduces new tools for developers and gamers (the recently announced iOS/iPadOS/macOS 26 received a new "Gaming" hub). Unfortunately for Apple, Macs still aren't popular for gaming, and the fact that it took Valve five years to optimize Steam for Apple Silicon just shows how difficult it is to convince everyone that Mac can game, too. In addition to native Apple Silicon support, the latest Steam Client Beta introduced improvements for Steam Chat, In-Game Overlay, and SteamOS. The complete changelog is available on the official Steam Community page.
    • It's been many years since i tried out Linux Mint along with Openoffice. These would be great for someone that just wants to browse the web and send emails and do a spreadsheet, but for anything beyond that its a heartache. Hard enough nowadays to get a 50 series GPU to run on windows properly, never mind under Linux
    • Again, you're confusing Copilot (the app) versus the Copilot+ PC certification. Related, but totally different things. The standalone app does certain basic things, but a PC with the Copilot+ certification can do a lot more AI stuff. They're not the same. Anyone can install the Copilot app, but not everyone can use the Copilot+ PC funcionalities, you need a compliant PC to do that.
    • I think you never tried Fedora... the most polished linux version I ever experienced. Better in my opinion than Ubuntu.
  • Recent Achievements

    • First Post
      NeoToad777 earned a badge
      First Post
    • Week One Done
      JoeV earned a badge
      Week One Done
    • One Month Later
      VAT Services in UAE earned a badge
      One Month Later
    • First Post
      LsDmT earned a badge
      First Post
    • Week One Done
      evershinefacilityservice earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      572
    2. 2
      ATLien_0
      250
    3. 3
      +Edouard
      162
    4. 4
      +FloatingFatMan
      147
    5. 5
      Michael Scrip
      111
  • Tell a friend

    Love Neowin? Tell a friend!