TechTalkz.com Logo Ask the Experts!

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech World > Technical Discussions

Folder locker - locker.bat file is deleted while the folder is hidden

Technical Discussions

 
Reply
Thread Tools Display Modes
Unread 14-11-2009, 06:12 PM   #1
Newbie
Thread Starter
 
Join Date: Nov 2009
Age: 29
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 vicki30 is an unknown quantity at this point


Windows XP


Folder locker - locker.bat file is deleted while the folder is hidden

Some guyz here must know that we can lock folders through notepad by typing below mentioned code:

Code:
cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020- 3AEA-1069- A2DD-08002B30309 D}" 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-08002B30309 D}"
attrib +h +s "Control Panel.{21EC2020- 3AEA-1069- A2DD-08002B30309 D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==type your password here goto FAIL
attrib -h -s "Control Panel.{21EC2020- 3AEA-1069- A2DD-08002B30309 D}"
ren "Control Panel.{21EC2020- 3AEA-1069- A2DD-08002B30309 D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End
so my query is suppose my folder is hidden and someone delete the locker.bat file by mistake so how can i recover my hidden folder too..

Sponsored Links

Last edited by Strider; 15-11-2009 at 08:07 AM..
vicki30 is offline   Reply With Quote
Unread 15-11-2009, 08:14 AM   #2
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: Folder locker - locker.bat file is deleted while the folder is hidden

Sponsored Links
It's there in the script itself. Just create the locker.bat with the code again!!

Or un-hide the folder manually.

1. Open command prompt (Start > Run > cmd > Enter)

2. Change to your hidden folders path. e.g. if your hidden folder is in C:\Docs
Code:
cd C:\Docs
3. Now execute the following commands.

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

Now you should be able to see the Locker folder in C:\Docs

Sponsored Links
Strider is offline   Reply With Quote
Reply

Thread Tools
Display Modes



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


New To Site? Need Help?

All times are GMT. The time now is 10:22 AM.


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