makin .batch to auto copy usb-drive files to hard drive???

Status
Not open for further replies.
what i need is to create a batch file so after i connect my usb drive or thumb drive to the computer it'll copy all files to a specifict folder on the hard drive is this possible? if not any ideas how i can do this its for an interface im making..... i dont need it to automatic do it by connecting the usb drive but hey that be great if not a bacth file that i'll excute everytime i connect my usb drive to the computer
 
The command you want to use in the batch file is "xcopy /y /h /e * c:\myfolder".

Run "xcopy /?" from the command line to see how the command works. Also, try running it manually to see how it behaves.

You can make a program to be run every time the drive is attached by putting an autorun.inf file in the root of the drive and editing its contents so it points to your copying batch file.
 
Status
Not open for further replies.
Back