batch file problem

C

CMAR

I have been having a problem with a simple batch file. I want to copy from
my card reader (F:) to the hard disk (C:\pictures).
The problem is that, as I take more pictures during the day, the folder
on the F: drive (compact flash memory card in the card reader) keeps
changing, i.e., from F:\canon220\ to F:\canon\221\ etc.

A batch file like this work initially: copy f:\canon220\*.*
c:\pictures

Naturally that batch file won't work when the source directory is \canon221.
So I tried copy f:\canon???\*.* or copy f:\canon*\*.* or copy f:\*\*.*
but none of them worked.

I would appreciate any ideas for a batch file that I would not have to
change each time the camera creates a new folder for pictures on the memory
card.

Thanks, CMA
 
T

Terry

On 11/8/2004 7:21 AM On a whim, CMAR pounded out on the keyboard
I have been having a problem with a simple batch file. I want to copy from
my card reader (F:) to the hard disk (C:\pictures).
The problem is that, as I take more pictures during the day, the folder
on the F: drive (compact flash memory card in the card reader) keeps
changing, i.e., from F:\canon220\ to F:\canon\221\ etc.

A batch file like this work initially: copy f:\canon220\*.*
c:\pictures

Naturally that batch file won't work when the source directory is \canon221.
So I tried copy f:\canon???\*.* or copy f:\canon*\*.* or copy f:\*\*.*
but none of them worked.

I would appreciate any ideas for a batch file that I would not have to
change each time the camera creates a new folder for pictures on the memory
card.

Thanks, CMA

Use xcopy and use the /e switch. i.e.
xcopy f:\*.* c:\pictures\ /e


--
Terry

***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
 
G

Guest

I am not sure if this idea will work or not.

Can the flash card hold the batch file? If so put batch file on the flash
card with a line xcopy *.* c:\pictures and place a link on the desktop to the
flash card.

Why does the folder change from 220 to 221.
 
J

James A. Smith

Use xcopy f:\ c:\pictures /s

The "/e" switch copies empty folders which you may not want to do.
 
S

Steve N.

James said:
Use xcopy f:\ c:\pictures /s

The "/e" switch copies empty folders which you may not want to do.

Close but no cigar; you are missing the filespec:

xcopy f:\*.* c:\pictures /s

Steve
 
R

Ron Bogart

In
Steve N. said:
Close but no cigar; you are missing the filespec:

xcopy f:\*.* c:\pictures /s

Steve

Actually you could do it like this xcopy f:\. c:\pictures /s
 
R

Ron Bogart

In
Steve N. said:
Heh, never knew about that one. I'll have to to try it sometime.

Steve

Works like a charm - specially for fat-finger warriors like me.... 8^)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top