- Thread Author
-
- #1
Hi everyone,
2 months ago I locked a folder in my external hard drive using the code below via a .bat file. Now, when I unlock the folder it seems to be empty. I checked on the storage details of the disk and it remains the same. Therefore I believe these files are not deleted but not visible either. Could you help me to reach back to my files again? Thanks already .
The lock code:
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
2 months ago I locked a folder in my external hard drive using the code below via a .bat file. Now, when I unlock the folder it seems to be empty. I checked on the storage details of the disk and it remains the same. Therefore I believe these files are not deleted but not visible either. Could you help me to reach back to my files again? Thanks already
The lock code:
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
Solution
SOLVED:Hi everyone,
2 months ago I locked a folder in my external hard drive using the code below via a .bat file. Now, when I unlock the folder it seems to be empty. I checked on the storage details of the disk and it remains the same. Therefore I believe these files are not deleted but not visible either. Could you help me to reach back to my files again? Thanks already.
The lock code:
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
It seems that windows recovered my files as .chk files for some reason. I found them by making system folders visible.
- Thread Author
-
- #3
I tried both reversing the lock and unlock code but it did not work out. To be helpful, I'm sharing all the code below:
cls
:BASTAN
@echo OFF
title Folder Gizlique
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Gizlique goto MDLOCKER
:CONFIRM
echo "Gizlique dosyasini gizlemek istiyor musun? (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 Gizlique "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Dosya kilitlendi
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==password goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Gizlique
echo Dosya acildi
goto End
:FAIL
echo Yanlis sifre
goto BASTAN
:MDLOCKER
md Gizlique
echo Gizlique created successfully
goto End
:End
cls
:BASTAN
@echo OFF
title Folder Gizlique
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Gizlique goto MDLOCKER
:CONFIRM
echo "Gizlique dosyasini gizlemek istiyor musun? (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 Gizlique "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Dosya kilitlendi
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==password goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Gizlique
echo Dosya acildi
goto End
:FAIL
echo Yanlis sifre
goto BASTAN
:MDLOCKER
md Gizlique
echo Gizlique created successfully
goto End
:End
Last edited:
- Joined
- Jul 4, 2015
- Messages
- 8,998
Are you running the code from the same directory as the folder is located? If not it won't work since you don't supply full paths in the code. I'm curious what's the point of the code? It doesn't provide any real security if that's your goal. all it does is obfuscate data. If you want real security I'd suggest using something like veracrypt or 7zip and store the data in a password protected container.
- Thread Author
-
- #5
Yes, the code is running from the same directory as the folder. I know the code doesn't actually do anything I put it for both fun and to save time in case of emergency.Are you running the code from the same directory as the folder is located? If not it won't work since you don't supply full paths in the code. I'm curious what's the point of the code? It doesn't provide any real security if that's your goal. all it does is obfuscate data. If you want real security I'd suggest using something like veracrypt or 7zip and store the data in a password protected container.
- Thread Author
-
- #7
SOLVED:Hi everyone,
2 months ago I locked a folder in my external hard drive using the code below via a .bat file. Now, when I unlock the folder it seems to be empty. I checked on the storage details of the disk and it remains the same. Therefore I believe these files are not deleted but not visible either. Could you help me to reach back to my files again? Thanks already.
The lock code:
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
It seems that windows recovered my files as .chk files for some reason. I found them by making system folders visible.
2 months ago I locked a folder in my external hard drive using the code below via a .bat file. Now, when I unlock the folder it seems to be empty. I checked on the storage details of the disk and it remains the same. Therefore I believe these files are not deleted but not visible either. Could you help me to reach back to my files again?
any update on my issue ?2 months ago I locked a folder in my external hard drive using the code below via a .bat file. Now, when I unlock the folder it seems to be empty. I checked on the storage details of the disk and it remains the same. Therefore I believe these files are not deleted but not visible either. Could you help me to reach back to my files again? Link Removed save insta