How To Copy All Data of Pendrive on Insert?

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. You will know that how we copy data from pendrive to computer without open pendrive.

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 for copying all data of pendrive on insert

how to copy data from computer automatically. below are the 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

CMD Window

Step 4:

After pressing enter will create a file called transferdata.bat.

Now move this file to desktop.

Transferdata icon

All done. When someone insert the pendrive into your computer than you have to simply click on this batch file and it will automatically copy all the data of pendrive to your destination folder in a hidden form.

That’s all.

Keep visiting techgeekers & stay updated.

Please like us on facebook and follow us on twitter to get our daily tech related updates.

About Pushkar Kathayat

Pushkar Kathayat is the founder and admin of TechGeekers.com. His passion is towards SEO, Online Marketing and blogging. Apart from Blogging he is also pursuing Engineering in Computer Science
Read More about Pushkar Kathayat

Speak Your Mind

*