Hey friends,here are some useful tips and tricks about computer......these stuffs are just for learning purpose. So don't try it in wrong way. Have fun........

Wednesday, January 26, 2011

How To copy the data from pen drive/Hard disk drive Secretly hiding from others.....(windows OS)

The contents of an storage drive like USB drive or external hard disk drive can be copied secretly with just a keystroke. Imagine your friend needs some files let's some movies from your computer and you are transferring them to his Pen drive while he's sitting beside you.At that moment an eagerness strike your mind that what's there in the pen drive,but you can not open it or copy it as your friend is present there.But you can surely copy all the stuffs from that Pen drive in front of your friend without his knowledge.For this you have to prepare a couple of files and save it in your computer secretly in some hidden folder.....and when some pen drive is inserted use a predefined keystroke and the files will be copied to your computer......just follow the steps....

1. First open notepad and type the following....

      @rem BATCH FILE
   @echo off
   xcopy "L:" /s /e /h /I /Q /Y
   ATTRIB +H
  :endofprogram

and save it as copy.bat(remember the file extension should be .bat)

2. Here "L:" is the drive letter for the pen drive to be copied. As you are preparing this file before the Pen drive is inserted you have to guess the drive letter.The easiest way is, the drive letter should be the next alphabet of the last alphabets used for hard disk drives and dvd drive. So just open "My computer" and check which one is the last letter assigned to drives.If it is "G:" then,after inserting the pen drive the drive letter should be "H:".So use "H:" in place of "L:" above.

3. Then open Notepad again and type the following..

   var WindowStyle_Hidden = 0
   var objShell = WScript.CreateObject("WScript.Shell")
   var result = objShell.Run("cmd.exe /c C:/pen drive/copy.bat",             WindowStyle_Hidden)

and save it as copy.js(you can use any file name but just don't change the file extension,it should be .js)

 here you should type the complete path name of the previous file(copy.bat) like my file is saved in a folder named 'pen drive' in drive C,then I should write "c:/pen drive".The underlined portion is the path name.change it accordingly.......

4. Just save the two files in the same location and your files will be copied to that location so keep it private.

5. Then place a shortcut of copy.js file on desktop.Right click on that file and send to Desktop. shortcut is placed on desktop.

6. Then on desktop right click on that shortcut file and go to the shortcut tab.Then navigate to the shortcut key prompt and click in the text box next to it and define a shortcut key(you can define a shortcut key by hitting any alphabetical or numerical key. It should be shown as "ctrl + alt + ". So if you press L then the shortcut key should be "ctrl + alt + L")

7. Now you are done.When a pen drive is plugged in just hit the shortcut key from your keyboard and the contents will be copied to your computer. Remember the files are copied to the location where you have saved the "copy.bat" file and they are in hidden form.So check that location and you can find the files.....

all d best....have fun......if any problems occur plz let me know....awaiting your comments...

Tuesday, January 25, 2011

How to install OS(xp/vista) from pendrive?

Windows OS can be installed from pen drive by making it bootable and copying the contents of the installer cd/dvd to the pen drive.But before that the pen drive should be converted just from a flash drive to a partitioned hard disk.It can be done through command prompt no software is needed.Here are the steps.........


1.At first the usb pen drive should be formatted in NTFS mode,in vista & 7 there is option to format pendrive in NTFS mode but in XP you have to follow some simple steps....
To format pendrive in NTFS mode in XP..................
  • Just right click on My computer and click Manage and go to Device Manager tab or directly start--->Run---->type "compmgmt.msc" (without the quotes) then go to the device manager tab.....
  • Double click on Disk drives and then right click on ur pen drive option.(Here my pen drive is showing as T.sonic650 usb device right click on that).
  • Then click on properties.
  • Then another window appears, in that window go to Policies tab.
  • Under that tab choose the option "Optimize for performance" and click OK.
  • Now u r done just go to my computer and right click on your pendrive and click format,u can find the NTFS mode for formatting there. 

2. Then go to start-->>;programs-->>;Accessories-->>;command prompt-->>;right click on that and choose Run as Administrator.

3.Then type the following.......
 Diskpart
 (It will open disk partition session.)

4.Then type list disk (shows the list of storage disks connected to your computer)

5.Now note down the disk no. of your pen drive,let it is DISK 1

6.Then type the following serially... and hit enter after every command...
     
          select DISK 1
    clean
    create partition primary
    select partition 1
    active
    format fs=ntfs
    assign
    exit


     


7.Now insert win vista/7 DVD to your DVD drive. Here i am assuming DVD drive as G and Pen drive as I.(Change it accordingly)

Now follow these instructions...



  1. Type G:CD BOOT
  2. Type this command BOOTSECT.EXE/NT60 I: to update your USB drive with bootmgr code.
  3. Finally copy all the contents from the Windows Vista/7 DVD to your Pen drive. Make sure you don’t cause any errors.
  4. Now set the boot priority to your pen drive from BIOS and you can proceed with the installation as normal.