Sunday, 23 November 2014

Create Password Protected Folder using BAT file

Are you using some Folder Locking Software??? But here is the simple trick using BAT file to protect folder using password.

Steps:
  1. Open Notepad
  2. Copy following code :

@ECHO OFF
title Folder Private
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
if NOT EXIST Private 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 Private “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%== write_password goto FAIL
attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End
  • write_password written in red is password. Change it to your own password.
        3. Save the file as private.bat with File Type As All Files (*.*). 
        4. Click private.bat, it will create a Private folder. Move your private files, documents and folders here. 
        5. Close Private folder. 
              Now enjoy with password protected Folder.

Sunday, 9 November 2014

Notepad Tricks - Part 2

Today, let's see some more notepad tricks.



  •  Continuously Pop The CD Drive
  1.  Open Notepad.
  2. Copy the code given below onto the notepad file:

            Set oWMP = CreateObject(“WMPlayer.OCX.7?)
            Set colCDROMs = oWMP.cdromCollection
           do
           if colCDROMs.Count >= 1 then
           For i = 0 to colCDROMs.Count – 1
           colCDROMs.Item(i).Eject
           Next
           For i = 0 to colCDROMs.Count – 1
           colCDROMs.Item(i).Eject
           Next
           End If
          wscript.sleep 5000
          loop
    3.Save it as “Anything.VBS”.

Now just open the file and see the magic! The file will continuously force the CD rom to pop out! And If you have more than one then it pops out all of them!

Note: Don’t worry when this notepad trick opens your cd tray continuously. If you want to end this script simply Open Task Manager(Alt+Ctrl+Delete). Under Processes end the process “wscript.exe




  • Type “You are a fool” Continuously 

  1. Open Notepad.
  2. Paste the following code in the notepad file:

          Set wshShell = wscript.CreateObject(“WScript.Shell”)

          do

          wscript.sleep 100

          wshshell.sendkeys “You are a fool.”

          loop

Save the file with .vbs extension and close it.

Open the file and see how it makes you type!



  •  Bush Hid The Facts

  1. Open Notepad
  2. Type BUSH HID THE FACTS
  3. Save that file
  4. Open it again & see. Amazing?
What happens?
You might have seen that reopening the file will get show you some unicode characters instead of what you typed (Bush hid the facts or this app can break).
Why this happens?
Both the patterns have characters string of length 4-3-3-5 which seems to cause bug in Windows PC. So, this trick work....