dcmmkdir usage

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
gulermu
Posts: 1
Joined: Thu, 2009-07-02, 19:41

dcmmkdir usage

#1 Post by gulermu »

Hi,

Using the "dcmmkdir" tool, I tried to create a DICOMDIR for the images that will be located on a peer directory called "dicom", a structure something like:

[File]
C:\TEMP\DICOMDIR

[Folder with DICOM images]
C:\TEMP\DICOM



1) What is the minimal command using dcmmkdir to do this using absolute paths?

2) What is wrong with the following command?

C:\TOOLS\dcmmkdir.exe --output-file C:\TEMP\DICOMDIR --input-directory DICOM C:\TEMP\DICOM\*.*

which generates the following error for every DICOM image:

Error: invalid character(s) in filename: C:\TEMP\DICOM\25587791

Note: There is pointer ("^") under the ":" character of "C:\TEMP\DICOM\*.*"



Afaik in Unix, one needs no ":" character to express a root path. But in my case (Windows) it is a must for the absolute paths and a quotation ("") over the path doesn't help.


Thanks in advance...

Mustafa Güler

--------------------------------------------------------------

To the OFFIS team,
As a beginner level DICOMer, I want to thank you guys behind this wonderful toolkit. Without the DCMTK, it would be a real pain to enter to the DICOM world.

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

The file IDs (i.e. filenames) in the DICOMDIR need to be relative to the directory where the DICOMDIR file resides. In your case, "--input-directory C:\TEMP\" is probably what you mean.

The complete command line could be something like the following:

Code: Select all

dcmmkdir --recurse --output-file C:\TEMP\DICOMDIR --input-directory C:\TEMP DICOM

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 1 guest