Powered By Blogger

KNOWLEGE BOOSTER

ROYAL PC WORLD

Custom Search

Friday, May 7, 2010

Create a password protected folder without any special software

Now, here we will see how to create a folder that will not just be invisible, but also require a password to reveal it and open it. The best part is that you don’t need any special software to do this. Just plain old Notepad is all that you need. Here is the code that you need:

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 u 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 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

Just copy the above code and paste it into Notepad. Save it by locker.bat name.
Try it any drive

Important: The batch file acts like a key to open the locked folder. So once you have created and locked a folder, do not keep the batch file in the same location since anybody can open the batch file and view your password. So I would suggest that you keep the batch file in a separate and safe place or better still keep it on your pen drive or flash drive. That way when you want to open the folder just copy the batch file to the location where you have your protected folder and run it.

Wednesday, May 5, 2010

How To Install Windows 7/Vista From USB Drive

Requirements:

*USB Drive (Minimum 4GB)

*Windows 7 or Vista installation files.

Follow the below steps to create bootable Windows 7/Vista USB drive using which you can install Windows 7/Vista easily.

convert USB Drive to NTFS

Click Start, point to All Programs, point to Accessories, and then click Command Prompt.

At the command prompt, type the following, where drive letter is the drive that you want to convert:

  1. convert drive letter: /fs:ntfs
    For example, type the following command to convert drive E to NTFS:
    convert e: /fs:ntfs

    D: CD BOOT and hit enter.Where “D” is your DVD drive letter.

    CD BOOT and hit enter to see the below message.

    Type another command given below to update the USB drive with BOOTMGR compatible code.

    BOOTSECT.EXE /NT60 H:

    14

    Where “H” is your USB drive letter. Once you enter the above command you will see the below message.

    Copy your Windows 7/Vista DVD contents to the USB flash drive.

    Your USB drive is ready to boot and install Windows 7/Vista. Only thing you need to change the boot priority at the BIOS to USB from the HDD or CD ROM drive. I won’t explain it as it’s just the matter the changing the boot priority or enabling the USB boot option in the BIOS.