Results 1 to 1 of 1
  1. #1
    Join Date
    Jan 2008
    Location
    Manitoba, Canada
    Age
    34
    Posts
    41

    Default 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

  1. Kids say the darndest things...
    By Toxic in forum Post Anything
    Replies: 2
    Last Post: 11-04-2007, 08:41 PM
  2. Replies: 7
    Last Post: 04-25-2007, 12:50 PM
  3. Importatnt Things
    By LiNuX in forum Post Anything
    Replies: 10
    Last Post: 03-17-2007, 03:39 PM
  4. Like things in my life
    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
  •  

» Site Navigation

» Home
» FAQ

» Log in

User Name:

Password:

» Recent Threads

Crafting Captivating...
05-21-2023 10:51 PM
Last Post By Lottery3425
10-24-2024 07:50 AM
Readying Business...
10-17-2024 05:10 AM
Last Post By TimothyGor
10-17-2024 05:10 AM
Safeguarding Firearms:...
10-09-2024 01:15 AM
Last Post By TimothyGor
10-09-2024 01:15 AM
Low Cost UK Hosting...
10-02-2024 07:30 AM
Last Post By Robertgob
10-02-2024 07:30 AM

» Sponsors