on 2005 Nov 29 1:17 PM
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!
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
30 | |
10 | |
8 | |
8 | |
7 | |
7 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.