Environment
SecureLogin SSO
Situation
How does the Run command process multiple arguments in the command line that include a SecureLogin variable such as $Username?
Parsing multiple arguments in a SecureLogin script when using the run command
Resolution
SecureLogin includes a Run command that will allow you to run other applications, batch files etc. from within an application script. If you use the run command with arguments that include SecureLogin variables, you need to use the correct syntax.
Use StrCat to create a temporary variable ?Argument. Then, all the data is passed as one argument to the application as per the following.StrCat ?Arguments ""/show"" $Username
Run ""C:\full path to application\appname.exe"" ?Arguments
Additional Information
If you want to run an application with /show and $Username as arguments, the following syntax will NOT work;
Run ""C:\full path to application\appname.exe""""/show"" $Username