Findscu.exe: reading from a file?

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
amunaaser
Posts: 40
Joined: Thu, 2020-03-26, 10:29

Findscu.exe: reading from a file?

#1 Post by amunaaser »

Hi!
I wonder, if, in case of Findscu.exe, it is possible to read all the options and other parameters from a file ("in-file") ? If yes, how should the format of this file look like?

findscu [options] peer port [dcmfile-in...] =>
findscu "in-file"

Thanks in advance
Nasser Hosseini

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1444
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

Re: Findscu.exe: reading from a file?

#2 Post by Marco Eichelberg »

Yes, that is possible. All DCMTK tools can read the options from a command file instead of the command line. Just specify the name of the command line with a leading '@':
findscu @commands.txt
The file 'commands.txt' should be a simple text file that contains the command line options, separated by space characters or newlines.
Note that at least on Unix systems, wildcard expansion will not work with command files, since the wildcards in filenames are actually processed by the shell (e.g. bash) and not by the application.

amunaaser
Posts: 40
Joined: Thu, 2020-03-26, 10:29

Re: Findscu.exe: reading from a file?

#3 Post by amunaaser »

Thank you for the reply!
Wildcard expansion worked just fine for me in Windows.

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1444
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

Re: Findscu.exe: reading from a file?

#4 Post by Marco Eichelberg »

Yes, that is correct. Wildcard expansion works differently on Windows.

Post Reply

Who is online

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