TechTalkz.com Logo Ask the Experts!

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Software World > Software Troubleshooting

locker.bat file is not working

Software Troubleshooting

 
Reply
Thread Tools Display Modes
Unread 05-02-2015, 05:09 PM   #1
Newbie
Thread Starter
 
Join Date: Feb 2015
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 Nour is an unknown quantity at this point

Intel

Windows 7


locker.bat file is not working

I have used locker.bat to lock a folder on my external device ,Now each time I try to open it , it requests the password and when I enter the correct password a new folder named as " private" is created but it's completely empty !! what should I do please !!

Sponsored Links
Nour is offline   Reply With Quote
Unread 06-02-2015, 01:32 PM   #2
Tachikoma
 
habibjp's Avatar
 
Join Date: Dec 2009
Location: Leeds
Age: 23
Posts: 2,913
Thanks: 94
Thanked 431 Times in 375 Posts
Mood: Innocent
Blog Entries: 9
Rep Power: 2487 habibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Great

AMD ATi

Windows 10 Linux


Re: locker.bat file is not working

Ok first off don't use locker.bat for anything that actually needs to be secure; all it does is move the folder to a hidden location that can easily be found by reading it from the .bat file. [Use Truecrypt for real security.] <---Unfortunately Truecrypt is no longer being updated/is no longer secure, so look here or use a search engine to learn about file encryption.

Now, to the problem-start by changing Folder Options (search control panel) to show hidden files and folders. With any luck your folder will still be there, only hidden and renamed "(Control Panel...)". Let me know if it works


----
FYI you have to edit the .bat file to set the password for this one.
__________________
FX 4170 @4.8 w/H110
Sabertooth 990FX
XMS3 8GB
840 EVO 250GB
XFX 7870
Corsair GS500
X-Fi
Logitech Z506
---------------------------------------------
I aim to misbehave.

Last edited by habibjp; 15-06-2015 at 01:39 PM..
habibjp is offline   Reply With Quote
Unread 06-02-2015, 01:43 PM   #3
Tachikoma
 
habibjp's Avatar
 
Join Date: Dec 2009
Location: Leeds
Age: 23
Posts: 2,913
Thanks: 94
Thanked 431 Times in 375 Posts
Mood: Innocent
Blog Entries: 9
Rep Power: 2487 habibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Great

AMD ATi

Windows 10 Linux


Re: locker.bat file is not working

To try to explain this a bit, here is the code for locker.bat:
Code:
cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u 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 Locker "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%== 12345 goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End
This bit right here is where the magic (or should I say wannabe-programmer trickery) happens:
Code:
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
It's not encrypting the folder, or even making it particularly difficult to access. It's just renaming it so that it looks like a system folder, then applying hidden and system attributes to it so that a layperson won't see it/will ignore it.
__________________
FX 4170 @4.8 w/H110
Sabertooth 990FX
XMS3 8GB
840 EVO 250GB
XFX 7870
Corsair GS500
X-Fi
Logitech Z506
---------------------------------------------
I aim to misbehave.
habibjp is offline   Reply With Quote
Unread 07-02-2015, 02:32 PM   #4
Newbie
Thread Starter
 
Join Date: Feb 2015
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 Nour is an unknown quantity at this point

Intel

Windows 7


Re: locker.bat file is not working

Thanks for replying , " show hidden files and folders " choice is enabled already but pictures inside "private" file still not appearing
Nour is offline   Reply With Quote
Unread 07-02-2015, 03:22 PM   #5
Tachikoma
 
habibjp's Avatar
 
Join Date: Dec 2009
Location: Leeds
Age: 23
Posts: 2,913
Thanks: 94
Thanked 431 Times in 375 Posts
Mood: Innocent
Blog Entries: 9
Rep Power: 2487 habibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Great

AMD ATi

Windows 10 Linux


Re: locker.bat file is not working

Ok look in the .bat file, copy the "Control Panel..." bit and paste it into Windows Search (C:\ drive), see what comes up
__________________
FX 4170 @4.8 w/H110
Sabertooth 990FX
XMS3 8GB
840 EVO 250GB
XFX 7870
Corsair GS500
X-Fi
Logitech Z506
---------------------------------------------
I aim to misbehave.
habibjp is offline   Reply With Quote
Unread 08-02-2015, 04:53 PM   #6
Newbie
Thread Starter
 
Join Date: Feb 2015
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 Nour is an unknown quantity at this point

Intel

Windows 7


Re: locker.bat file is not working

No items match my search "c: /drive"

:/
Nour is offline   Reply With Quote
Unread 09-02-2015, 04:38 PM   #7
Webmaster
 
Strider's Avatar
 
Join Date: Nov 2005
Location: Interwebs
Posts: 5,056
Thanks: 637
Thanked 734 Times in 617 Posts
Mood: Busy
Blog Entries: 6
Rep Power: 9052 Strider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly Eminent

Intel Nvidia

Windows Server Windows 7 Windows 10 Linux


Re: locker.bat file is not working

Can you please post a copy of your locker.bat file?
Strider is offline   Reply With Quote
Unread 13-06-2015, 01:01 PM   #8
Newbie
Thread Starter
 
Join Date: Feb 2015
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 Nour is an unknown quantity at this point

Intel

Windows 7


Re: locker.bat file is not working

heeey thank you !
it worked :
Nour is offline   Reply With Quote
Unread 24-11-2016, 05:41 PM   #9
Newbie
 
Join Date: Nov 2016
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Mood: Worried
Rep Power: 0 davis is an unknown quantity at this point

Intel

Windows 8


Re: locker.bat file is not working

I have used locker.bat to lock a folder on my external device ,Now each time I try to open it , it requests the password and when I enter the correct password a new folder named as " private" is created but it's completely empty !! what should I do please !!
davis is offline   Reply With Quote
Unread 24-11-2016, 09:59 PM   #10
Tachikoma
 
habibjp's Avatar
 
Join Date: Dec 2009
Location: Leeds
Age: 23
Posts: 2,913
Thanks: 94
Thanked 431 Times in 375 Posts
Mood: Innocent
Blog Entries: 9
Rep Power: 2487 habibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Great

AMD ATi

Windows 10 Linux


Re: locker.bat file is not working

Sponsored Links
Do you have "show hidden files and folders" enabled in folder settings?

Sponsored Links
__________________
FX 4170 @4.8 w/H110
Sabertooth 990FX
XMS3 8GB
840 EVO 250GB
XFX 7870
Corsair GS500
X-Fi
Logitech Z506
---------------------------------------------
I aim to misbehave.
habibjp is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Folder locker - locker.bat file is deleted while the folder is hidden vicki30 Technical Discussions 1 15-11-2009 08:14 AM
bit locker wsms Windows Deployment 3 28-11-2007 12:29 PM
bit locker wsms Windows Deployment 3 28-11-2007 12:25 PM
bit locker wsms Windows Deployment 3 28-11-2007 12:23 PM
TPM and Bit Locker Me Windows Vista All 2 01-11-2007 06:01 AM


< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT. The time now is 01:07 PM.


vBulletin, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © 2005-2016, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional