Run Command

An entry's 'Run Command' field can contain a command that will be run when the Run Command action is selected. The command can be anything that can be executed by typing it in the "Start → Run" box of your computer.

In addition, Password Safe is able to pass arguments to the command such as the entry's username, password, etc., as described below. This allows you to 'program' fairly complex actions, such as invoking a remote access program (PuTTY, for example) and passing it the username and password associated with the entry.

In general, 'variables' are replaced with values associated with them before being passed to the computer for execution. The dollar ('$') sign is used to indicate a variable.


Example

The following Run Command will cause the Putty program to connect to myHost giving the entry's username and password:
"C:\Program Files\PuTTY\putty.exe" -ssh ${u}@myHost 22 -pw $p