-
Helping out those who like things hidden
The following is the code for a batch file. The file will make a folder that only the owner of the password can access. Save it in notepad as filename.bat.
cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure you 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.
goto CONFIRM
:LOCK
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==*****type your password here***** 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
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End
Remember to replace *****type your password here***** with your password. I hope this helps someone with those volatile folders NSFW.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
By Toxic in forum Post Anything
Replies: 2
Last Post: 11-04-2007, 08:41 PM
-
By FattaT in forum Shooters
Replies: 7
Last Post: 04-25-2007, 12:50 PM
-
By LiNuX in forum Post Anything
Replies: 10
Last Post: 03-17-2007, 03:39 PM
-
By JannetHlou in forum Gamers Forum Talk
Replies: 1
Last Post: 10-02-2006, 03:52 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
» Site Navigation
» Friends
» Recent Threads
» Sponsors
|