Hani Posted July 27, 2007 Share Posted July 27, 2007 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. 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 More sharing options...
myrhymeandreason Posted July 27, 2007 Share Posted July 27, 2007 I like it. I will try this one out. Link to comment https://www.neowin.net/forum/topic/576805-folder-locking-without-software/#findComment-588733953 Share on other sites More sharing options...
nXqd Posted July 27, 2007 Share Posted July 27, 2007 (edited) Very nice :) But I think there's problem that anyone can get password from locker.bat viewed by Notepad. nXqd Edited July 27, 2007 by Nxqd3051990 Link to comment https://www.neowin.net/forum/topic/576805-folder-locking-without-software/#findComment-588734220 Share on other sites More sharing options...
AimLXJ Posted July 27, 2007 Share Posted July 27, 2007 Very nice :)But I think there's problem that anyone can get password from locker.bat viewed by Notepad. nXqd Lmao, there goes the privacy. Link to comment https://www.neowin.net/forum/topic/576805-folder-locking-without-software/#findComment-588735410 Share on other sites More sharing options...
Creamy Posted July 28, 2007 Share Posted July 28, 2007 Yeah...but its enough to hide stuff for your little sister! ;) Link to comment https://www.neowin.net/forum/topic/576805-folder-locking-without-software/#findComment-588737312 Share on other sites More sharing options...
zhangm Supervisor Posted July 29, 2007 Supervisor Share Posted July 29, 2007 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. Link to comment https://www.neowin.net/forum/topic/576805-folder-locking-without-software/#findComment-588737757 Share on other sites More sharing options...
nizsmo Posted August 3, 2007 Share Posted August 3, 2007 Thanks for this! Very useful! Link to comment https://www.neowin.net/forum/topic/576805-folder-locking-without-software/#findComment-588751367 Share on other sites More sharing options...
shadow_dweller Posted August 20, 2007 Share Posted August 20, 2007 Very good. Thanks for this ! Link to comment https://www.neowin.net/forum/topic/576805-folder-locking-without-software/#findComment-588793979 Share on other sites More sharing options...
myrhymeandreason Posted August 20, 2007 Share Posted August 20, 2007 If you're serious about security, use an encryption program. Folder Locking Without Software :) Link to comment https://www.neowin.net/forum/topic/576805-folder-locking-without-software/#findComment-588793985 Share on other sites More sharing options...
ISV Posted August 23, 2007 Share Posted August 23, 2007 very good! THX 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?? Link to comment https://www.neowin.net/forum/topic/576805-folder-locking-without-software/#findComment-588799388 Share on other sites More sharing options...
Hani Posted August 23, 2007 Author Share Posted August 23, 2007 it won't work, you have to keep it in the same place Link to comment https://www.neowin.net/forum/topic/576805-folder-locking-without-software/#findComment-588799803 Share on other sites More sharing options...
Victor V. Posted August 23, 2007 Share Posted August 23, 2007 Also, if I'm not wrong, anyone with administrator privileges may use attrib to get a folder back, that is, if they notice anything missing. Link to comment https://www.neowin.net/forum/topic/576805-folder-locking-without-software/#findComment-588801497 Share on other sites More sharing options...
voidpharoh Posted August 24, 2007 Share Posted August 24, 2007 (edited) 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 August 24, 2007 by voidpharoh Link to comment https://www.neowin.net/forum/topic/576805-folder-locking-without-software/#findComment-588802132 Share on other sites More sharing options...
PictorieN Posted August 27, 2007 Share Posted August 27, 2007 Tested it in Vista, I can still access the hidden folder that it renamed private too. Encryption seems like a better way to do thing just takes longer. Link to comment https://www.neowin.net/forum/topic/576805-folder-locking-without-software/#findComment-588808921 Share on other sites More sharing options...
DerkPY Posted August 27, 2007 Share Posted August 27, 2007 Very nice, thanks ;) Link to comment https://www.neowin.net/forum/topic/576805-folder-locking-without-software/#findComment-588809503 Share on other sites More sharing options...
Lt-DavidW Posted August 27, 2007 Share Posted August 27, 2007 If you want to encrypt/decrypt stuff without installing anything, just run TrueCrypt from a USB key in 'traveler mode'. Link to comment https://www.neowin.net/forum/topic/576805-folder-locking-without-software/#findComment-588809510 Share on other sites More sharing options...
Abhishek kapoor Posted August 27, 2007 Share Posted August 27, 2007 it;s working ...thax a lot ... but security issue is still there Link to comment https://www.neowin.net/forum/topic/576805-folder-locking-without-software/#findComment-588809527 Share on other sites More sharing options...
Nipun Mohta Posted October 14, 2007 Share Posted October 14, 2007 It justs hide the folder named "Private". I'm using Windows Vista. Link to comment https://www.neowin.net/forum/topic/576805-folder-locking-without-software/#findComment-588919017 Share on other sites More sharing options...
careless_monkey Posted October 23, 2007 Share Posted October 23, 2007 awesome thnx a lott!!! :rolleyes: Link to comment https://www.neowin.net/forum/topic/576805-folder-locking-without-software/#findComment-588939288 Share on other sites More sharing options...
beautiful.blood Posted October 23, 2007 Share Posted October 23, 2007 sweet thanx finally learned something new in xp Link to comment https://www.neowin.net/forum/topic/576805-folder-locking-without-software/#findComment-588939968 Share on other sites More sharing options...
Recommended Posts