I am going to teach you how you can do this from batch file with the help of autorun.inf file. Let me tell you the basic things what will happen.
When you plug in in your Pen drive, system will look up for autorun.inf and after you click 'yes' to autorun,it will execute the batch file and hence copy all files to pendrive.
INSTRUCTIONS :-
STEP 1) Copy and paste the following code to notepad and save it with filename.bat
*ENABLE/DISABLE USB PORTS TO KEEP YOUR LAPPIE SAFE*
BEWARE :- If your USB ports are open, anyone could secretly steal/copy all your important data, and imagine what the hell could happen if someone posts your personnel photos to internet.
So, i will show you a way to disable the USB ports so that no pendrives can be detected and hence your data can be safe and secure THAT TOO WITHOUT USING A SOFTWARE.
INSTRUCTION :-
STEP 1) Go to start -> run -> and type "regedit" and hit ENTER.
As we all know, Most people tend to save passwords which are used on a
daily basis, including instant messenger passwords such as MSN, Yahoo,
AOL, Windows messenger etc. Along with these, People also stores
passwords of Outlook Express, SMTP, POP, FTP accounts and auto-complete
passwords of many browsers like IE and Firefox. There exists many tools
for recovering these passswords from their stored places.&nbs
... Read more »