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

By sickkindaheadd
Jan 25, 2005
  1. 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
  2. Nodsu

    Nodsu TS Rookie Posts: 5,837   +6

    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.
  3. sickkindaheadd

    sickkindaheadd TS Rookie Topic Starter

    hey thank you for your help it really worked....
Topic Status:
Not open for further replies.

Similar Topics

Add New Comment

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...