GetCommandline

Item Description

Use with:

Startup scripts, Windows

SecureLogin Version:

3.0.4

Type:

Action

Usage:

GetCommandline Variable

Arguments:

Variable

Defines where the captured command line will be stored.

Description:

Captures the full command line of the program that is loaded and saves it to the specified variable.

HINT:  You can use GetCommandLine to detect and differentiate back-end systems or databases for use with multiple logins in the SAP application.

Example:
Windows script
The command line of the application is read, then tested to see if it is Notepad.exe. If it is, Notepad is closed. If it isn't, the script ends.

GetCommandline ?Text 
If ?Text Eq "C:\Winnt\Notepad.exe"
Killapp Notepad.exe
EndIf