cancel
Showing results for 
Search instead for 
Did you mean: 

SAPLOGON.SAL- different saplogon.ini files

martin_dahm
Explorer
0 Kudos
134

Dear all,

I'm looking for a possibility to use different ini files, dependent from the access via network (lan) or VPN.

The local saplogon.ini file should only be used if the saplogon.ini file from the network directory is not available. Maybe with SAPLOGON.SAL?

thanks in advance!

Accepted Solutions (1)

Accepted Solutions (1)

martin_dahm
Explorer
0 Kudos

Dear Reiner,

many thanks for your answer and sorry to annoy you again, but I need a little bit more information about this issue. Where can I find information about it? An example would be appreciated.

Martin

0 Kudos

if (netWorkIsAvailable())

{

System.Runtime.InteropServices.Environment.SetEnvironmentVariable("SAPLOGON_INI_FILE", "c:
windows
SAPLOGON.SAL");

}

else

{

System.Runtime.InteropServices.Environment.SetEnvironmentVariable("SAPLOGON_INI_FILE", null);

}

SAPLogonDestination dest = new SAPLogonDestination();

...

Message was edited by: Reiner Hille-Doering

Answers (1)

Answers (1)

0 Kudos

SAPLOGON.EXE and the newest version of NCo (2.0.1) have a feature that allows to specify which SAPLOGON.INI to use: Set an environemnt variable called "SAPLOGON_INI_FILE" to the full pathname of the ini file you want to use.

You can use the feature e.g. in a batch file that conditionally set the variable.