Print a list of file-names on memory card of digital camera

G

gary

I have a Panasonic Lumix DMC-TZ4 digital camera.

The camera is connected to my PC via a USB cable.

The files are located on: Removable Disk F:\DCIM\105_PANA

How I print a list of the file-names with the date the pictures were taken?
 
Z

Zaphod Beeblebrox

On Fri, 4 Jan 2013 09:26:08 -0800 (PST), "gary" <[email protected]>
wrote in article <0dc93845-5c38-468d-9650-
(e-mail address removed)>...
I have a Panasonic Lumix DMC-TZ4 digital camera.

The camera is connected to my PC via a USB cable.

The files are located on: Removable Disk F:\DCIM\105_PANA

How I print a list of the file-names with the date the pictures were taken?

There may be a better way, but I'd just start a command prompt and type
the following two lines:

dir F:\DCIM\105_PANA>list.txt
notepad list.txt

Then, print the list from within notepad.
 
J

J. P. Gilliver (John)

gary said:
I have a Panasonic Lumix DMC-TZ4 digital camera.

The camera is connected to my PC via a USB cable.

(Probably running the camera's batteries down: if you have a card
reader, you'll get the same transfer without having to do that. Also
means you can put the camera away safely.)
The files are located on: Removable Disk F:\DCIM\105_PANA

How I print a list of the file-names with the date the pictures were taken?

[Quick way - skip the following, go to POINT X:]

Assuming the camera's clock/calendar was correctly set up when the
pictures were taken, one way is via Irfanview: open one of the pictures
in it, press B (for batch), put

$E36867 $N

into the "Name pattern" box, select "batch rename", click on "Use
current ... directory", click "Add all", click "Start Batch", and get
out (keep hitting Esc). This will rename all the files from something
like "P0000001" to something like "2013-01-04 17-50-25 P0000001". (Leave
off the "$N" if you don't want the original name. I've put it in as I
assume you've changed them from P0000001 to something more meaningful,
since you wanted a list of _names and_ dates.)

The above sounds far more complicated than it is; I do it in about 5
seconds. (IrfanView remembers the name pattern string.)

[POINT X:]

Then, from a command box (start | run | cmd):

F:
cd \DCIM\105_PANA
dir /w > list.txt

will give you a list.txt file you can print.

In fact, doing the above - without the /w - will do what you want
without renaming the files at all, I think; however, I find it useful to
do the renaming.

In the command box,

dir /?

will show you the other options to the dir command, such as reversing
the order of the listing.
 
S

Stefan Patric

On Fri, 4 Jan 2013 09:26:08 -0800 (PST), "gary" <[email protected]>
wrote in article <0dc93845-5c38-468d-9650-
(e-mail address removed)>...

There may be a better way, but I'd just start a command prompt and type
the following two lines:

dir F:\DCIM\105_PANA>list.txt
notepad list.txt

Then, print the list from within notepad.

Can't you redirect the dir list to the printer or printer device or
printer port? It's been so long since I've used DOS, I've forgotten. I
can with Linux. So, I'm guessing DOS will, too.

Stef
 
P

Paul

J

J. P. Gilliver (John)

In message <[email protected]>, Stefan Patric
Can't you redirect the dir list to the printer or printer device or
printer port? It's been so long since I've used DOS, I've forgotten. I
can with Linux. So, I'm guessing DOS will, too.

Stef

You used to, with something like > LPT: or > PRN: or > LPT1:; however, I
think that only worked with parallel port printers. (Or serial [COM1:
etc.] ones.) I don't know the equivalent - if there is one - for USB
ones, which most people will have now. (Also, I'm not sure if most
modern printers will know what to do with plain ASCII text, rather than
graphic instructions.)
 
R

Robert Macy

Can't you redirect the dir list to the printer or printer device or
printer port?  It's been so long since I've used DOS, I've forgotten.  I
can with Linux.  So, I'm guessing DOS will, too.

Stef

command line prompt [used to be called inDOS]

go to the directory you want printed and type:
dir > prn

if you want in specific order, like alphabetically, type
dir /on > prn
 
P

Paul

Paul said:
http://en.wikipedia.org/wiki/Design_rule_for_Camera_File_system

Perhaps what you need, is "command line EXIF" tools.
(No, I don't own a camera, and have never downloaded this.)

http://www.sno.phy.queensu.ca/~phil/exiftool/

Paul

Date info could be stored at two levels. In the file system
of the camera, where the files are stored. Or, the date
could also be stored as some kind of EXIF info inside the
picture itself (as a tag). That's why I'm suggesting the
exiftool, as it might be good no matter where the
picture file is eventually stored. The date stored inside
the picture, might be a little more robust to accidental
change.

Paul
 
J

John Smith

J. P. Gilliver (John) said:
gary said:
I have a Panasonic Lumix DMC-TZ4 digital camera.

The camera is connected to my PC via a USB cable.

(Probably running the camera's batteries down: if you have a card
reader, you'll get the same transfer without having to do that. Also
means you can put the camera away safely.)
The files are located on: Removable Disk F:\DCIM\105_PANA

How I print a list of the file-names with the date the pictures were taken?

[Quick way - skip the following, go to POINT X:]

Assuming the camera's clock/calendar was correctly set up when the
pictures were taken, one way is via Irfanview: open one of the pictures
in it, press B (for batch), put

$E36867 $N

into the "Name pattern" box, select "batch rename", click on "Use
current ... directory", click "Add all", click "Start Batch", and get
out (keep hitting Esc). This will rename all the files from something
like "P0000001" to something like "2013-01-04 17-50-25 P0000001". (Leave
off the "$N" if you don't want the original name. I've put it in as I
assume you've changed them from P0000001 to something more meaningful,
since you wanted a list of _names and_ dates.)

The above sounds far more complicated than it is; I do it in about 5
seconds. (IrfanView remembers the name pattern string.)

Go with Irfanview :)


[POINT X:]

Then, from a command box (start | run | cmd):

F:
cd \DCIM\105_PANA
dir /w > list.txt

will give you a list.txt file you can print.

In fact, doing the above - without the /w - will do what you want
without renaming the files at all, I think; however, I find it useful to
do the renaming.

In the command box,

dir /?

will show you the other options to the dir command, such as reversing
the order of the listing.



--
Always turning on the Automatic Updates feature in Windows XP.

Now you need to know how to use MS Fix-It
< http://fixitcenter.support.microsoft.com/Portal >

At no time Format partition 2 D: System-Recovery
 
J

J. P. Gilliver (John)

In message
Can't you redirect the dir list to the printer or printer device or
printer port?  It's been so long since I've used DOS, I've forgotten.  I
can with Linux.  So, I'm guessing DOS will, too.

Stef

command line prompt [used to be called inDOS]

go to the directory you want printed and type:
dir > prn

if you want in specific order, like alphabetically, type
dir /on > prn

1. Sometimes this needed a colon (PRN: rather than just PRN), in order
to actually print rather than just produce a file called prn. I can't
remember under what circumstances this was the case.

2. I think that often went to the parallel port (possibly to the default
printer port, but not sure if that could be a USB one).

3. Some modern printers may not work as plain text printers. (For
example, I don't think most of them can do a plain text test print -
like older ones used to do if you turned them on with this or that
button held in - without being connected to the PC; if they can do any
sort of test when not connected, it tends to be something graphic.)
 
Z

Zaphod Beeblebrox

On Fri, 4 Jan 2013 21:16:18 +0000 (UTC), "Stefan Patric"
Can't you redirect the dir list to the printer or printer device or
printer port? It's been so long since I've used DOS, I've forgotten. I
can with Linux. So, I'm guessing DOS will, too.
I thought about recommending dir F:\DCIM\105_PANA>PRN to print the list
directly, however AIUI the PRN device does not point to USB printers
(but I could be wrong). I do not have a printer connected directly to
my PC to be able to check, everything I have is networked at the moment
and for sure PRN does not point to a networked printer.

--
Zaphod

Arthur: All my life I've had this strange feeling that there's
something big and sinister going on in the world.
Slartibartfast: No, that's perfectly normal paranoia. Everyone in the
universe gets that.
 
Z

Zaphod Beeblebrox

On Sat, 5 Jan 2013 06:17:31 -0800 (PST), "Robert Macy"
Can't you redirect the dir list to the printer or printer device or
printer port?  It's been so long since I've used DOS, I've forgotten.  I
can with Linux.  So, I'm guessing DOS will, too.

Stef

command line prompt [used to be called inDOS]

go to the directory you want printed and type:
dir > prn

if you want in specific order, like alphabetically, type
dir /on > prn

Just tested it, and USB devices don't point to PRN so the intermediate
step of a text file is (as far as I can tell) required.
 
K

Ken Springer

I have a Panasonic Lumix DMC-TZ4 digital camera.

The camera is connected to my PC via a USB cable.

The files are located on: Removable Disk F:\DCIM\105_PANA

How I print a list of the file-names with the date the pictures were taken?

Or, you could have done it the easy way, and added the Print Directory
function to XP.

http://support.microsoft.com/kb/321379

Apologies for the late reply, I'm way, way, way behind in newsgroup
reading. :-(



--
Ken

Mac OS X 10.8.2
Firefox 18.0
Thunderbird 17.0.2
LibreOffice 3.6.3.2
 
J

J. P. Gilliver (John)

Ken Springer said:
Or, you could have done it the easy way, and added the Print Directory
function to XP.

http://support.microsoft.com/kb/321379

Apologies for the late reply, I'm way, way, way behind in newsgroup
reading. :-(
(-: - you're the only person who mentioned this though!

Looking at that page, it seems (looking at the "do it yourself" part,
anyway) to be something that just pipes the output of "dir" to a file
then opens Notepad on it anyway, as some have suggested.

I tried the "let us do it for you" way - using Firefox, this resulted in
a .msi file downloading, so I right-clicked that and chose install. It
tried to go online (to akamai-technologies) about 8 times during the
install; I said no each time, and still ended with a "Print Directory
Listing" (you know it's genuine Microsoft, Because Every Word Begins
With A Capital Letter) option in the right-click menu.

When I actually try it, I get two windows: a black "cmd" one with
nothing in it, and a NotePad+ one, again with nothing in it. If I close
the latter, the other closes too. I presume it doesn't work with
NotePad+ (which, unlike NotePad, _doesn't_ open a file on opening).

(I've just played a bit: by changing the line in the batch file it
creates from
start /w notepad /p "%temp%\Listing"
to
notepad "%temp%\Listing"
it opens NotePad+ with the listing ready to print.)
--
J. P. Gilliver. UMRA: 1960/<1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf

live your dash. ... On your tombstone, there's the date you're born and the
date you die - and in between there's a dash. - a friend quoted by Dustin
Hoffman in Radio Times, 5-11 January 2013
 
K

Ken Springer

(-: - you're the only person who mentioned this though!

Looking at that page, it seems (looking at the "do it yourself" part,
anyway) to be something that just pipes the output of "dir" to a file
then opens Notepad on it anyway, as some have suggested.

I tried the "let us do it for you" way - using Firefox, this resulted in
a .msi file downloading, so I right-clicked that and chose install. It
tried to go online (to akamai-technologies) about 8 times during the
install; I said no each time, and still ended with a "Print Directory
Listing" (you know it's genuine Microsoft, Because Every Word Begins
With A Capital Letter) option in the right-click menu.

When I actually try it, I get two windows: a black "cmd" one with
nothing in it, and a NotePad+ one, again with nothing in it. If I close
the latter, the other closes too. I presume it doesn't work with
NotePad+ (which, unlike NotePad, _doesn't_ open a file on opening).

(I've just played a bit: by changing the line in the batch file it
creates from
start /w notepad /p "%temp%\Listing"
to
notepad "%temp%\Listing"
it opens NotePad+ with the listing ready to print.)

Can you configure NotePad+ to not open a file when started?

What happens here, the two windows open, the default printer then prints
the listing, and everything closes.


--
Ken

Mac OS X 10.8.2
Firefox 18.0.1
Thunderbird 17.0.2
LibreOffice 3.6.3.2
 

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