
70
3.0 Operating the Unit
3.3 Command-Line Options
DAP-Imager includes several commands to control it from an external
application.
3.3.1 Syntax
DAP-Imager [configFilePath] [-b] [-q] [-NextImageFilePath FilePath]
[-OneShotCapture] [-SelectMode \”modeName\”] [-SetAutoFlash state]
[-WaitUntilWndClosed] [-SetTopMost]
Command-Line Arguments
Argument
Description
configFilePath
.ini file to load (optional; default path is C:\
ProgramData\DAP-Imager\DAP-Imager.ini).
-b
Execute in background
-q
Quit any instance already running
-NextImageFilePath
Sets the path of the next image file saved
(one-shot). Normally used with “-OneShot
-
Capture”.
-OneShotCapture
Shows the preview, let the user press the
trigger and take a picture. When taken,
DAP-Imager hides. Can be used with “-Nex
-
tImageFilePath” to allow a user taking a
picture that is then retrieved by an external
application.
-SelectMode
The next parameter is the name of the
mode to select (Portrait, Landscape, Macro,
Barcode)
-ResetOptions:
Ignores DAP-Imager.ini and use the default
settings
-WaitUntilWndClosed
Shows DAP-Imager and do not return before
it’s hidden