Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Mon, 2018-10-22, 18:01

All times are UTC + 1 hour

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: dcmmkdir usage
PostPosted: Sat, 2009-08-01, 12:12 

Joined: Thu, 2009-07-02, 19:41
Posts: 1

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:


[Folder with DICOM images]

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.

 Post subject:
PostPosted: Mon, 2009-08-03, 13:30 

Joined: Fri, 2004-10-29, 21:38
Posts: 2217
Location: Oldenburg, Germany
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:

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

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group