Home
SQL Image Viewer online help Prev Page Prev Page
Introduction
About SQL Image Viewer
Version history
Contact us
User Guide
System requirements
Editor command selection
Exporting large number of images
Folders and files
Reference Guide
Main menu
Connect to Database
Connecting to Firebird databases
Connecting to MySQL databases
Connecting to Oracle databases
Connecting to SQLite databases
Connecting to SQL Server databases
Connecting using ODBC
Connecting to a DB2 database
Connecting to a PostgreSQL database
Options
General options
Editor options
Thumbnail options
Image view
Check for updates
About
The work area
SQL editor
Table browser
Results
Other binary data
Image viewer
Hex viewer
Export items wizard
Exporting Microsoft Access OLE data
Image options
File naming convention
Datetime format specifiers
Command line interface
Parameters, logs and exit codes
Advanced options
CROP option
Troubleshooting
Expired trial
Invalid licenses
Unidentified images or binary data

Parameters, logs and exit codes

The command line interface requires the name of the export settings file as the first parameter e.g.

Settings file name: mandatory

SQLImageViewerCmd "g:\export\settings.siv"
 

/LOG: optional

The command line interface will save a log of the export events to the Documents and Settings\All Users\Application Data\Yohz\SQL Image Viewer\Log
folder. You can save an additional copy of the log to a file name of your choice. You do this by using the /LOG parameter e.g.

SQLImageViewerCmd "g:\export\settings.siv" /LOG "x:\export\exportlog.txt"
 

/ERRORLOG: optional

You can also save only errors and warnings to a log file. You do this by using the /ERRORLOG parameter e.g.

SQLImageViewerCmd "g:\export\settings.siv" /ERRORLOG "x:\export\exportlog_errors.txt"
 

The command line interface returns with exit code 0 when no errors or warnings are encountered. If any warnings were raised, exit code 1 is returned. Exit code 2 is returned when errors were raised.

/NODEFAULTLOG: optional

You can also choose to not create the default log file. You do this by using the /NODEFAULTLOG parameter e.g.

SQLImageViewerCmd "g:\export\settings.siv" /NODEFAULTLOG
 

/KEEPLOGS: optional

The default log files will accumulate over time. You can choose to delete old log files using the /KEEPLOGS parameter. In the following example:

SQLImageViewerCmd "g:\export\settings.siv" /KEEPLOGS 1
 

will delete log files older than a day in the default log folder. You can also specify the age in hours, using the h suffix e.g.

SQLImageViewerCmd "g:\export\settings.siv" /KEEPLOGS 6h
 

In this case, SQL Image Viewer will delete log files older than 6 hours in the default log folder.