I used the below code to lock a folder with password, it was working fine but then I dont know what happen when i enter pw nothing happen?



title Folder Locker

if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK



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.



ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"

attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"

echo Folder locked

goto End


echo Enter password to Unlock folder

set/p "pass=>"

if NOT %pass%==persephoe 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


echo Invalid password

goto end


md Locker

echo Locker created successfully

goto End



when I copy the folder and past it somewhere else it shows that I'm copying images but when open the file still empty. I used the command dir *.* -s -h \s \d o the folder the command prompt listed all the files in it but still I cant see them. I tried the command copy to transfer them somewhere else the system cant find them, weird the system found them with dir command and cant with copy command :( please help me I need those pictures badly

3 Answers

  • 2 months ago

    Windows powershell?  Might be better to ask your question on Stack Overflow.

    If I were debugging, I would execute the lines manually one by one, and see where things are hanging.

    • Login to reply the answers
  • not sure what you are asking.

    • Login to reply the answers
  • Jay
    Lv 6
    2 months ago

    And your question is..................... non existent

    • Login to reply the answers
Still have questions? Get your answers by asking now.