Many of the files on various CDs will have the same name, for example,
the first CD being copied may have the following filename and
folders d:\DCIM\image01.jpg
and then the next CD may also have a folder and file named d:\DCIM
\image01.jpg
I am trying to enable the user to just run the batch file on every CD
and copy all the files to a USB external drive.
Should I post the current code? This is running on a Vista laptop.
>I wrote a nice little dos batch file to copy .jpg files from a CD to
>the hard drive and recreate the directory tree. The user clicks on
>the batch file and it automatcially runs.
>
>Many of the files on various CDs will have the same name, for example,
>the first CD being copied may have the following filename and
>folders d:\DCIM\image01.jpg
>
>and then the next CD may also have a folder and file named d:\DCIM
>\image01.jpg
>
>I am trying to enable the user to just run the batch file on every CD
>and copy all the files to a USB external drive.
Add a line or two to generate the current date and time in a variable, and
create a root folder with that name, for each time it is run:
20090609-08.38.40 for example.
See Timo's FAQ for information on creating the date-time variable.
Excellent, I will do that and post the finished code.