counter
Friday, May 7, 2010
Create a password protected folder without any special software
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:
- convert drive letter: /fs:ntfsFor 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:
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.
Thursday, April 22, 2010
Turbo C Environment
File – Loads and saves files, handles directories, invokes DOS, and exits Turbo C
Edit – Invokes the Turbo C editor
Run – Compiles, links and runs the program currently loaded in the environment
Compile – Compiles the program currently in the environment
Project – Manages multi-file project
Options – Sets various compiler, linker and environmental options
Debug – Set various debug options
Break/watch – Manages debugger watch expressions and break points
File Menu
Load – prompts you for a filename and then loads that file into editor
Pick – displays a menu that contains a list of the last eight files you have edited.
New – lets you edit a new file
Save – saves the file currently in the editor
Write To – lets you save the file in a different filename.
Directory – displays the current working directory and lets you choose a file to edit
Change Dir – changes the default directory to the one you specify.
OS shell – loads the DOS command processor and lets you execute DOS commands
Quit – quits Turbo C
Run Menu
Run – executes and compiles the current program
Program reset – terminates your program when it is being run in debug mode.
Go to cursor – executes your program until it reaches the line of code where the cursor is positioned.
Trace into – executes the next line or statement.
Step over – executes the next line of code, but it does not trace into subroutines that may be called.
Compile Menu
The first option allows you to compile the file currently in the editor to an .OBJ file, which is ready to be linked into an .EXE file which is an executable file.
The second option will compile your program directly into an executable file.
The third option lets you link your current program.
The Build All, recompiles all the files related to your program.
The Primary C file option lets you specify a filename that will be compiled when you select one of the earlier options, ignoring whatever file is currently being edited.
Get info – displays information about your program and the environment, including how much free memory is available and the length of the file.
Hot Keys
F1 - Online help
F2 - Saves the current file being edited
F3 - Loads a file
F5 - Zooms the window
F6 - Switches between the window
F7 - Trace
F8 - Step
F9 - Compiles and links your program
F10 - Toggles between the main menu and the editor
Alt-F1 – last help screen
Alt-F3 – allows you to pick a file to load
Alt-F5 – switches between environment screen and output screen
Alt-F7 – previous error
Alt-F8 – next error
Alt-F9 – compiles file to .OBJ
Alt-C – Compile menu
Alt-D – Debug menu
Alt-E – Edit menu
Alt-F – File Menu
Alt-O – Option Menu
Alt-P – Program Menu
Alt-R – Run Menu
Alt-X – Quits Turbo C
Ctrl-F1 – requests help about the item which contains in the cursor
Ctrl-F9 – Runs the program




