-2

i was searching google to find a way to hide images/files in my computer. That's when I came across .bat file. I followed the steps, I setup the password shown in the steps. The .bat file was working well, TO ADD : I was using the .bat file in my External Hard drive to store photos.

Now suddenly the .bat is not opening up, it just asks "Lock the folder (Y/N)". If anyone knows how to retrieve my pictures please let me know. Almost 1.5gb of pictures and files are lost.

  • the file in your link does not ask Lock the folder (Y/N). Did you use a different batch file or did you edit the file? – Albin Oct 20 '19 at 12:11
  • Did you read the tips on the link you provided? Did you try it? If you've made a mistake in editing the code and hidden some files then run cmd and then go to the folder which contained those files and then type attrib -r -h -s *.* then hit enter and your files will come back. – Albin Oct 20 '19 at 12:17
  • 3
    Your question does not contain enough information to be answered without our making assumptions. Please include the code of your batch file as it currently exists on your system. – I say Reinstate Monica Oct 20 '19 at 12:27
  • 2
    And make sure not to use the External drive any more in case the pictures got deleted somehow. If you do the chances are less to recover them. – Albin Oct 20 '19 at 12:58
2

The folder is still where you left it. All this .bat file did was to mark it as hidden, which is not any kind of protection, except from people that are beginners in Windows.

To access the folder:

  • Start Windows Explorer (or press Win+E)
  • Click "View" at the top
  • Click "Options" on top-tight
  • Click "View"
  • Under "Hidden f‌iles and folders" click next to "Show hidden f‌iles, folders, and drives"
  • Click OK
  • Position to your folder, which will now be visible.

From now on, this folder will keep its Hidden attribute, but will be visible in Explorer. If you wish to undo this attribute:

  • In Explorer, right-click the folder
  • Select Properties
  • In the General tab, click next to "Hidden" so it becomes unchecked
  • Click OK

I would advise to not use this .bat file, but use instead the above method.

  • How do you figure the files are only hidden? – Albin Oct 20 '19 at 12:56
  • @Albin: I have downloaded the .bat file. All it does is call attr. – harrymc Oct 20 '19 at 13:19
  • this can not be the file the OP uses, either he edited it or he used a different one (see my question's comment). – Albin Oct 20 '19 at 13:35
  • 1
    @Albin: He might be using two different .bat files, but my answer tells how he can get his data back and stop using .bat files for elementary Windows operations. – harrymc Oct 20 '19 at 13:40
  • 1
    @Albin: If he cannot see the folder after what I proposed, then the folder is not there, certainly. But with my answer he can be sure of what he is seeing. And please don't derogate my attempts to help posters to the low level of "want the point". I haven't worked on such a detailed answer just for a point. I don't like your comment. – harrymc Oct 20 '19 at 13:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.