JPEG Saver command-line options
JPEG Saver supports all the standard Windows command-line options for screen savers, and version 4.6 adds some extra options for controlling JPEG Saver's config and other files.
Here are the options that should be supported by all Windows screen savers, not just JPEG Saver.
Note: if the screen saver is installed in the default location
it will automatically be available in the default path. If you installed
somewhere else, you will need to provide the full path to the
.scr file on the command line.
Opens the screen saver config dialog.
C:\> JPEGSavr.scr /c
Opens the screen saver config dialog, with the currently active window as its parent.
C:\> JPEGSavr.scr /s
Starts the screen saver.
There is another option, “
/p <window handle>”,
used by the Control Panel to display the small screen saver preview. It is not
much use to the average user.
JPEG Saver version 4.6 adds some options to make things easier for people
who want to start it from a script or change the config files it uses.
The new options are
/f to set the config file,
to set the database file,
/w to set the desktop wallpaper file
/u to use any of the other options without opening the dialog
or starting the screen saver.
All of these new options must be used with either the
/s options to modify the default behaviour.
Config file - /f
This is the main file that JPEG Saver uses to store all its settings.
Depending on the option used during installation, it would normally be stored
in the user's personal folder or possibly in the same folder as the
JPEGSavr.scr file, or you could have used the "Save as..." option
to save it somewhere else.
The location and name of the current config file is stored in the registry,
/f option overrides this value.
C:\> JPEGSavr.scr /c /f <config file path>
Opens the config dialog and edits the selected config file, without changing the registry entry.
C:\> JPEGSavr.scr /s /f <config file path>
Starts the screen saver using the selected config file, ignoring the registry entry.
Database file - /d
The database file is used to store the locations and some other basic details of the images that JPEG Saver will display. It is updated every time the screen saver runs.
If you are using the
/f option to set config files with
different sets of folders, then you should also use a separate database file
with each config to prevent the whole database being rewritten when the screen
saver starts up.
C:\> JPEGSavr.scr /c /f <config file path> /d <database file path>
Opens the config dialog with the selected config file and sets the database file.
C:\> JPEGSavr.scr /s /f <config file path> /d <database file path>
Starts the screen saver with the selected config and database files.
The database file location is saved to the config file, so you do not need
to specify it every time you use the
Wallpaper file - /w
When the "Interactive" option is enabled, pressing
the current screen as a BMP file and sets it as the desktop background image.
/w option allows you to specify the name and location of the
C:\> JPEGSavr.scr /c /f <config file path> /w <wallpaper file path>
Opens the config dialog with the selected config file and sets the wallpaper file. The wallpaper file path is saved to the config file.
C:\> JPEGSavr.scr /s /w <wallpaper file path>
Starts the screen saver, using the provided path for the wallpaper file.
“Use” option - /u
/w options tell
JPEG Saver to use specific files, they do not change the config file that is
used when the screen saver starts automatically. For that, you should use the
C:\> JPEGSavr.scr /c /u /q /f <config file path>
This makes JPEG Saver update the registry key that specifies the config file to use with the value provided, and then exit without displaying anything. The next time Windows starts the screen saver it will use this file.
/q option here is for “quiet” - without it,
JPEG Saver will pop up a dialog to tell you that it has successfully updated
/c option must be used with
/u can be used with any or all of
/w to set them for use.
Slideshow view option - /v
This option was added in version 4.16 to enable using JPEG Saver as a slideshow viewer, and is used by the Windows Explorer folder context menu handler.
C:\> JPEGSavr.scr /s /v <folder to view>
The option takes a single argument, the folder to view. JPEG Saver will run using a memory-based database using the default config file with these modifications:
- The chosen folder will be scanned recursively for images;
- Folders from the config file will be ignored;
- Filters will be ignored;
- No aspect ratio check will occur;
- Config file updates will be disabled.
The slideshow will also use the options specified in the Interactive options dialog.