Sunday, August 28, 2011

Make a hidden folder using SCRIPT, without any software

1. Make a 'new folder'
2. Now make a new text file (.txt) in this folder.
3. Paste this code in that file

cls 
@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%== password here 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


Note: Replace password here with your own password.
3. Save this file as key.bat
4. Now double click on 'key.bat'. it makes a folder named 'Private'.
5. Put all your data in this folder, which you want to hide.
6. Finally double click on key.bat, and press 'y'.
        All done your data is hide and safe.

7. For opening this folder again, double click on key.bat and enter your password.

Friday, August 26, 2011

Start PYTHON in LINUX

1.    Install gedit in your linux distro.
                         Every GNOME Linux distro have gedit. Because gedit is the official text editor 
                         of the GNOME desktop environment.

2.    Run gedit so we can fix few default setting:
             2.1 Open  'edit>preferences' select the 'editor' tab
             2.2 Changed tab width to 4
             2.3 Select 'insert spaces instead of tabs'
             2.4 Turn on “automatic indentation” as well
             2.5 Now, view tab turn on “display line numbers”.

3.    Open your 'Terminal program', run python.


     If you run python and its not there, install 'python 2' not 'python 3'.
     Type 'exit()' or 'ctrl+d' and get out of python.

Note :
  1.    Use gedit because it is simple and same on all computer/environment.
  2.    Never use 'Vim' or 'Emacs' these are for a better programmer.
  3.    Do not try to install 'python 3', it's not for beginners.