Tuesday 18 November 2014

How to copy all data of pendrive on insert?

Posted by Pushkar
Hello friends,
Hope you all are fine.
Today friends, I will explain you a trick which will copy all the data of external devices like pendrive or others to your computer without the use of any third-party software.Sometimes we wish friends that on inserting some media devices like DVD or pendrive, all the data of these devices should be automatically copy to your computer in a hidden way.
We will do it with the help some simple dos commands inscribed in a batch file.
For doing this please follow the below steps.
Steps 1:
Open cmd and type the following command.
Copy con transferdata.bat
Note: here transferdata is the filename. Replace it with it others if you want otherwise.
Steps 2:
After executing above command type the line below
Xcopy H: E/transferdata /h /i /q /c
In next line type exit
Description of symbols being used here.
Xcopy: This command is used in command prompt to copy the all files or/and directory tree from one location to another.
H: Source,it is the device letter of your device from where you want to copy the data. Replace it with your own device letter.
E/transferdata: It is the destination where data of pendrive will be copied. Replace it with the address where you want to copy the data.
/h: In default the xcopy command does not copy the hidden files or system files of the source folder. But after including this option in command line, it will.
/i: using this option will force xcopy command that destination is a directory. If this is option is not used than if we are copying from the source which is group of files or directory tree and if the destination is not in existence , than xcopy command will ask you to enter the type of destination.
/c: continue, using this option will make xcopy to continue its process even if it finds an error.
/q: This switch will put xcopy into quiet mode and will not display name of source or destination files being copied.
Steps 3:
Press f6
Picture2 How to copy all data of pendrive on insert?
http://techgeekers.com/wordpress/copy-data-pendrive-insert/

0 comments:

Post a Comment