Password Protect a Folder w/o Software or .bat file

Author Message
SnackySniper

  • Total Posts : 22
  • Scores: 0
  • Reward points : 0
  • Joined: 9/15/2009
  • Status: offline
Password Protect a Folder w/o Software or .bat file Thursday, September 17, 2009 2:44 AM (permalink)
0
I got alot of help with this from rasimmer but here you go password your file

Set wshShell =wscript.CreateObject("WScript.Shell")

Dim Password
Dim objFSO : Set objFSO = WScript.CreateObject("Scripting.FileSystemObject")

WScript.Sleep 500

Password=InputBox("Enter Password:","Password Protecter","Case Sensetive")
WScript.Sleep 100
If Password="TYPE YOUR PASSWORD HERE" or Password="RETYPE YOUR PASSWORD HERE" then
msgbox("Unlocked")
Dim objFolder2 : Set objFolder2=objFSO.getFolder("E:\games.{21EC2020-3AEA-1069-A2DD-08002B30309D}")
objFolder2.Name= "games"
else
msgbox("Locked")

    Dim objFolder : Set objFolder = objFSO.GetFolder("E:\Games")
    objFolder.Name = "games.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
end if

wscript.sleep 500
 
#1

    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • New Messages
    • No New Messages
    • Hot Topic w/ New Messages
    • Hot Topic w/o New Messages
    • Locked w/ New Messages
    • Locked w/o New Messages
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2012 ASPPlayground.NET Forum Version 3.9