I messed up bad made folder inacessable!
by thebic4 - 11/17/12 3:58 PM
ok i was thinking after i finally fixing my from being infected nasty trojan. i thought what if i password protected my system 32 folder (like that would stop a hacker). I wanted to test it out incase i messed up and brick my pc. I tested it out on my documents folder (don't know why i didn't make a new folder) and copied a script from online in not pad like this
title Folder Private
if EXIST "HTG Locker" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
echo Are you sure you want to lock the folder(Y/N)
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
ren Private "HTG Locker"
attrib +h +s "HTG Locker"
echo Folder locked
echo Enter password to unlock folder
if NOT %pass%== PASSWORD_GOES_HERE goto FAIL
attrib -h -s "HTG Locker"
ren "HTG Locker" Private
echo Folder Unlocked successfully
echo Invalid password
echo Private created successfully
and saved it as a .bat. when executed it would ask if i wanted to password protect a folder. i pressed yes and it created a private folder i moved the my document folder into the private folder and re-ran the .bat to password protect the private folder. i entered in a simple password called test1. when i applied the password it made the private folder disappeared as expected. but when i went to open it by running the .bat file and entered the password test1 it just closed the the .bat and did not open the folder. now the folder is inacessable and to make matters worst i deleted the .bat thinking it would fix it. i am using XP by the way and i really need to finish typing my report on Edgar Allan poe by monday!