knightwareKnightware StoreSite SearchAbout the CompanyLink to UsKnightware Home



 


Using Command Line Parameters

SQM Reader Pro currently supports three command line parameters. The parameters and their usages are:

SqmReaderPro.exe [option]

Option Description
-autostart

Starts reading upon program start up using the configuration saved from the previous session. If the program is configured to read continuously, this feature can be used in combination with the Windows Startup folder feature to begin meter reading when the computer is rebooted.

Autostart at Boot Example

  1. Create a shortcut for SQM Reader Pro in your Windows Startup folder. Make sure that you create the shortcut in the Startup folder for the user account under which the software wil be run.
  2. In the shortcut's properties, set Target on the Shortcut tab to: "C:\Program Files\Knightware\SQM Reader Pro\1.0\SqmReaderPro.exe" -autostart

You can run SQM Reader Pro as usual using the Windows Start menu entry or a desktop shortcut; the shortcut created in the Windows Startup folder is used only at boot up.

-ini

SQM Reader Pro stores its configuration settings in sqmreader.ini by default. The file is located on the Application Data path for the product 1.

You can specify an alternate configuration file by using the -ini command line parameter. For example, you can specify the configuration file mysqm.ini on the root folder of your C: drive by using the following command line parameter:

-ini="C:\mysqm.ini"

-pwd

SQM Reader Pro stores its encrypted FTP password in sqmreader.pwd by default. The file is located on the Application Data path for the product 1.

You can specify an alternate password file by using the -pwd command line parameter. For example, you can specify the password file mysqm.pwd on the root folder of your C: drive by using the following command line parameter:

-pwd="C:\mysqm.pwd"


1 Application Data path on Windows XP is like:
C:\Documents and Settings\<user>\Application Data\Knightware\SQM Reader Pro\1.0\

Application Data path on Windows 7/XP is like:
C:\Users\<user>\AppData\Roaming\Knightware\SQM Reader Pro\1.0\