Recovering Files Lost in a Folder Locker batch program


  1. Posts : 4
    Windows 10 Pro 64bit, x64-based processor
       #1

    Recovering Files Lost in a Folder Locker batch program


    Hello All- first time posting- I hope I am following forum guidelines and providing enough info. Please feel free to correct me or ask questions. FYI I am pretty good with computers but a novice on programming.

    Problem
    *I have about 50GB of files locked in a hidden folder. I created a "folder locker" using this article:
    How To Password Protect a Folder in Windows 10 | Laptop Mag
    *It worked great at first, but now I cannot get the "FolderLocker.bat" file to run.
    *It is supposed to launch a black screen where I enter a password, and voila my files appear!
    *When I double click the file, I get an error message (error message.png attached)
    *I right click and "run as admin", which launches "windows command processor"- then a black screen quickly appears but very quickly disappears.

    Other Relevant Info
    *The program was created on a different computer which I do not have access to.
    *The program ONLY worked on initial setup computer, I think. I am pretty sure the first time I tried it on my current machine, the problem started.
    *I poked around CMD using my VERY little knowledge and tried to access the folderlocker.bat file that way and it just said "Access Denied". I also tried to "display directory" to see if other files showed up, but I just saw the same stuff as in windows explorer (folder structure.png attached).
    *This is all on a Toshiba External hard drive.

    Things I've Tried that didn't work
    *Running .bat file on another computer.
    *Changing Permissions for Authenticated users on .bat file.
    *Running the file with full admin privileges (my current user name does NOT have full admin).
    *Accessing via CMD as stated above.
    *Changing drive extension of the external hard drive from E: to D: (I think it might have been set up as D: but I can't remember 100%.
    *Banging my head against the wall repeatedly.

    I could care less about getting this program to work that is now haunting me. Just looking for any way to recoup my data! Many thanks for reading and extra heaps of thanks for any suggestions!
    Attached Thumbnails Attached Thumbnails Recovering Files Lost in a Folder Locker batch program-error-message.png   Recovering Files Lost in a Folder Locker batch program-folder-structure.png  
      My Computer


  2. Posts : 0
    Windows 7 Ultimate x64
       #2

    This is actually the Windows 7 help forums. The Windows 10 help forums are here: Windows 10 Help Forums

    But I'll add that perhaps you can try Notepad ++ and then right click the .bat file to open it in Notepad ++.

    Something tells me Win 10 messed the whole damn lot up. You should have used something like Veracrypt or Truecrypt instead.
      My Computer


  3. Posts : 2,798
    Windows 7 x64, Vista x64, 8.1 smartphone
       #3

    This batch file has been available for older editions of Windows, see Lock Folder without any Software | Microsoft Forums. The solution demonstrates the Principles of Hidden Folders from a batch file, but is not secure.
    From the link provided, follow the advise of kedar9444, Wednesday, November 2 2011:
    Open your Explorer Window on the Directory containing the .bat file.
    Click on the Organise Tab, in Explorer.
    Select Folder and Search Options, then select View Tab.
    Uncheck "Hide protected operating system files (Recommended)".
    Then your hidden folder will reveal itself. Double click on the newley revealed Folder, and provide Password.
    Remeber to re-check "Hide protected operating system files (Recommended)" when done.
      My Computer


  4. Posts : 4
    Windows 10 Pro 64bit, x64-based processor
    Thread Starter
       #4

    iko22 said:
    This batch file has been available for older editions of Windows, see Lock Folder without any Software | Microsoft Forums. The solution demonstrates the Principles of Hidden Folders from a batch file, but is not secure.
    From the link provided, follow the advise of kedar9444, Wednesday, November 2 2011:
    Open your Explorer Window on the Directory containing the .bat file.
    Click on the Organise Tab, in Explorer.
    Select Folder and Search Options, then select View Tab.
    Uncheck "Hide protected operating system files (Recommended)".
    Then your hidden folder will reveal itself. Double click on the newley revealed Folder, and provide Password.
    Remeber to re-check "Hide protected operating system files (Recommended)" when done.
    Thank you very much for your suggestion! I really appreciate it. This got me a step closer. I followed these instructions and now I can see all of my stuff. However, instead of a folder called "Locker", which I expected to see, it is called "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}". I can enter that folder and view all of my files, but they are still locked. The .bat file won't run as previously stated. When I double click to open any of the files, I get an access denied error or you do not have permission. Any idea the next step to take? Thanks!
      My Computer


  5. Posts : 4
    Windows 10 Pro 64bit, x64-based processor
    Thread Starter
       #5

    F22 Simpilot said:
    This is actually the Windows 7 help forums. The Windows 10 help forums are here: Windows 10 Help Forums

    But I'll add that perhaps you can try Notepad ++ and then right click the .bat file to open it in Notepad ++.

    Something tells me Win 10 messed the whole damn lot up. You should have used something like Veracrypt or Truecrypt instead.
    Oi sorry about that! I will repost on Windows 10. I really appreciate your suggestion. I will try Notepad ++ in a little bit and report back. I agree I should not have used this method- naive to think nothing would happen.
      My Computer


  6. Posts : 2,468
    Windows 7 Ultimate x64
       #6

    Tricks like that are targeted at kids and really inexperienced people, because such thing realistically provides ZERO protection against anything. All that it does is renaming a folder and setting hidden and system attributes and that's it. This leveragers bugs in Windows Explorer that hides folder with certain names. No decent file manager does this, including the built-in command prompt.

    All you have to do is to simply rename the folder back and unset the attributes and your data is "back" again. If you want to secure data, use VeraCrypt of similar encryption software instead.
      My Computer


  7. Posts : 4
    Windows 10 Pro 64bit, x64-based processor
    Thread Starter
       #7

    Alejandro85 said:
    Tricks like that are targeted at kids and really inexperienced people, because such thing realistically provides ZERO protection against anything. All that it does is renaming a folder and setting hidden and system attributes and that's it. This leveragers bugs in Windows Explorer that hides folder with certain names. No decent file manager does this, including the built-in command prompt.

    All you have to do is to simply rename the folder back and unset the attributes and your data is "back" again. If you want to secure data, use VeraCrypt of similar encryption software instead.
    Thanks for your answer! What do you mean by "rename the folder back and unset the attributes"? I am not sure what that means. Could you please elaborate a little? Thanks!
      My Computer


  8. Posts : 2,468
    Windows 7 Ultimate x64
       #8

    Sarkman22 said:
    Thanks for your answer! What do you mean by "rename the folder back and unset the attributes"? I am not sure what that means. Could you please elaborate a little? Thanks!
    All this "locker" does is just rename the folder and make it hidden, relying on a bug of Windows Explorer to remain "hidden". Since Explorer fails miserably with such a folder, open a command prompt where you have the bat file and issue these commands:

    Code:
    attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
    This makes the folder visible again, and non-system (these options are greyed out for no good reason in Windows Explorer, so you must use command line to unset them).

    Then rename the folder to a normal name:

    Code:
    ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
    This removes the special name that makes Explorer hide this folder. Then you can just access it like any other folder out there.

    Then get rid of the bat file althogeter It does nothing useful and is trivially defeated.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 17:57.
Find Us