How to open Weasis from command line

542 views
Skip to first unread message

AL

unread,
Feb 16, 2023, 9:21:06 AM2/16/23
to dcm4che
Hi,

I need to open CT images in Weasis from DVD with DICOMDIR file in root directory using command line parameter or weasis commands. I know how to do it from GUI, but I need to open it form another application. Is there any weasis command or command line parameter to open images via DICOMDIR file?
Of cource I can look for .dcm files in DVD subdirectories and open images using weasis command "dicom:get -l [path_to_dcm_files]", but DICOMDIR would be preferred method in some cases.

Adam


Nicolas Roduit

unread,
Feb 17, 2023, 2:35:30 AM2/17/23
to dcm4che
If you build a CD with Weasis (with the viewer), you will get an autorun file:
[autorun]
Open=viewer\Weasis.exe weasis://%24dicom%3Aget%20-p%20%24weasis%3Aconfig%20pro%3D%22weasis.portable.dir%20.%22
Action=Open Images with Weasis
Icon=viewer\Weasis.ico


The command will load a DICOMDIR from the folder defined in weasis.portable.dir (here is the current directory with '.')   $dicom:get -p $weasis:config pro="weasis.portable.dir ."

See how to modify launch parameters.
Reply all
Reply to author
Forward
0 new messages