PicasaStarter can be started from a shortcut or the command line using command line arguments to control it's operation. When PicasaStarter is executed, the command line is parsed and if keywords are found, the operation is accomplished without starting the PicasaStarter GUI.
In addition, for advanced operations, PicasaStarter sets some environmental variables and executes a batch file just before Picasa is started and just after Picasa ends. These features allow the advanced user to write batch files to control the environment before running Picasa, and restoring it after Picasa is closed.
Command Line Arguments
PicasaStarter can be started from a shortcut or the command line using command line arguements to control it's operation. When PicasaStarter is executed, the command line is parsed and if keywords are found, the operation is accomplished without starting the PicasaStarter GUI.
Command Line: PicasaStarter.exe [/autorun | /backup] [ "Database Name" | Personal | AskUser ]
First Argument: Action To Be Taken:
Second Argument: Database Name:
Batch Files: Pre_RunPicasa.Bat and Post_RunPicasa.Bat
When PicasaStarter Is going to run Picasa, the Pre_RunPicasa.Bat file is called after the environment is set up, just before Picasa is actually started. After Picasa exits, and before the environment is taken down, the Post_RunPicasa.Bat file is called. These two Batch Files are called if they exist in the PicasaStarter Settings directory as defined by PicasaStarter.
The advanced user can use Pre_RunPicasa.Bat file to do anything required before Picasa can be run. Examples of uses include logging onto a network, mapping drives, setting up environmental variables, or copying or moving files. After Picasa ends, the Post_RunPicasa.Bat can reverse the actions as required.
Simple Example of a Pre_RunPicasa.Bat File:
The example batch file below does nothing but list the Environmental Variables starting with "PS_" and wait for the user to press any key.
Environmental Variables: PS_PicasaDBGoogleDir and PS_SettingsDir
When PicasaStarter Is going to run Picasa, the environmental Variables PS_PicasaDBGoogleDir, and PS_SettingsDir are set just before Pre_RunPicasa.Bat file is called. They are deleted just after Picasa exits, and after the Post_RunPicasa.Bat file is called. These environmental variables provide the batch files with information on the location of the selected database Google Directory path, and the PicasaStarter Settings directory path. These Environmental Variables only exist in the Local Picasa Environment.