Step by step how to create a batch file to replace saplogin.ini


Steps:



  1. At times we might need to update items in Sap Logon pad.
    0015-saplogon-batch

  2. The fastest way to do so is to replace the saplogin.ini. (located c:’windows’)
    0015-saplogon-batch-0

  3. Now to backup your original saplogon.ini - just rename it to saplogon.bak.ss

  4. Open saplogon.ini in a notepad. This is how it looks like:
    0015-saplogon-batch-01

  5. Copy paste all the text at the bottom of the screen and paste it into a new notepad. Rename the text file to
    "SAPLOGON-BATCH.BAT"

  6. Open the batch file and replace IP address with your own servers below
    0015-saplogon-batch-03

  7. The above IP address correspond to below system number.
    0015-saplogon-batch-04

  8. Now you can replace your server description accordingly
    0015-saplogon-batch-05

  9. Lastly, replace the system name.
    0015-saplogon-batch-06

  10. Save the "SAPLOGON-BATCH-SAMPL.BAT" on the desktop

  11. Double click the batch file and it will replace your saplogin.ini.

::*********************************************
::* File : Replace existing SAPLOGON.INI
::* Created : 00:43 15/12/2007
::* Version : 1.0
::* Copyright (C) 2007 howtosap.blogspot.com
::*********************************************


@echo Replacing Existing SAPLOGON.INI
@echo 10 precent completed
@echo [Configuration] >= C:’WINDOWS’SAPLOGON.INI
@echo SessManNewKey=4 >> C:’WINDOWS’SAPLOGON.INI
@echo.>> C:’WINDOWS’SAPLOGON.INI
@echo [EntryKey] >> C:’WINDOWS’SAPLOGON.INI
@echo Item1= >> C:’WINDOWS’SAPLOGON.INI
@echo Item2= >> C:’WINDOWS’SAPLOGON.INI
@echo Item3= >> C:’WINDOWS’SAPLOGON.INI
@echo.>> C:’WINDOWS’SAPLOGON.INI
@echo [Router] >> C:’WINDOWS’SAPLOGON.INI
@echo Item1= >> C:’WINDOWS’SAPLOGON.INI
@echo Item2= >> C:’WINDOWS’SAPLOGON.INI
@echo Item3= >> C:’WINDOWS’SAPLOGON.INI
@echo.>> C:’WINDOWS’SAPLOGON.INI
@echo 30 precent completed
@echo [Router2] >> C:’WINDOWS’SAPLOGON.INI
@echo Item1= >> C:’WINDOWS’SAPLOGON.INI
@echo Item2= >> C:’WINDOWS’SAPLOGON.INI
@echo Item3= >> C:’WINDOWS’SAPLOGON.INI
@echo.>> C:’WINDOWS’SAPLOGON.INI
@echo [RouterChoice] >> C:’WINDOWS’SAPLOGON.INI
@echo Item1=0 >> C:’WINDOWS’SAPLOGON.INI
@echo Item2=0 >> C:’WINDOWS’SAPLOGON.INI
@echo Item3=0 >> C:’WINDOWS’SAPLOGON.INI
@echo.>> C:’WINDOWS’SAPLOGON.INI
@echo [Server] >> C:’WINDOWS’SAPLOGON.INI
@echo Item1=172.16.6.6 >> C:’WINDOWS’SAPLOGON.INI
@echo Item2=172.16.6.8 >> C:’WINDOWS’SAPLOGON.INI
@echo Item3=172.16.6.7 >> C:’WINDOWS’SAPLOGON.INI
@echo.>> C:’WINDOWS’SAPLOGON.INI
@echo 50 precent completed
@echo [Database] >> C:’WINDOWS’SAPLOGON.INI
@echo Item1=01 >> C:’WINDOWS’SAPLOGON.INI
@echo Item2=03 >> C:’WINDOWS’SAPLOGON.INI
@echo Item3=02 >> C:’WINDOWS’SAPLOGON.INI
@echo.>> C:’WINDOWS’SAPLOGON.INI
@echo [System] >> C:’WINDOWS’SAPLOGON.INI
@echo Item1=3 >> C:’WINDOWS’SAPLOGON.INI
@echo Item2=3 >> C:’WINDOWS’SAPLOGON.INI
@echo Item3=3 >> C:’WINDOWS’SAPLOGON.INI
@echo.>> C:’WINDOWS’SAPLOGON.INI
@echo [Description] >> C:’WINDOWS’SAPLOGON.INI
@echo Item1=SAP DEVELOPMENT >> C:’WINDOWS’SAPLOGON.INI
@echo Item2=SAP PRODUCTION >> C:’WINDOWS’SAPLOGON.INI
@echo Item3=SAP QUALITY ASSURANCE >> C:’WINDOWS’SAPLOGON.INI
@echo.>> C:’WINDOWS’SAPLOGON.INI
@echo [Address] >> C:’WINDOWS’SAPLOGON.INI
@echo Item1= >> C:’WINDOWS’SAPLOGON.INI
@echo Item2= >> C:’WINDOWS’SAPLOGON.INI
@echo Item3= >> C:’WINDOWS’SAPLOGON.INI
@echo.>> C:’WINDOWS’SAPLOGON.INI
@echo [MSSysName] >> C:’WINDOWS’SAPLOGON.INI
@echo Item1=DEV >> C:’WINDOWS’SAPLOGON.INI
@echo Item2=PRD >> C:’WINDOWS’SAPLOGON.INI
@echo Item3=QAS >> C:’WINDOWS’SAPLOGON.INI
@echo.>> C:’WINDOWS’SAPLOGON.INI
@echo 70 precent completed
@echo [MSSrvName] >> C:’WINDOWS’SAPLOGON.INI
@echo Item1= >> C:’WINDOWS’SAPLOGON.INI
@echo Item2= >> C:’WINDOWS’SAPLOGON.INI
@echo Item3= >> C:’WINDOWS’SAPLOGON.INI
@echo.>> C:’WINDOWS’SAPLOGON.INI
@echo [MSSrvPort] >> C:’WINDOWS’SAPLOGON.INI
@echo Item1= >> C:’WINDOWS’SAPLOGON.INI
@echo Item2= >> C:’WINDOWS’SAPLOGON.INI
@echo Item3= >> C:’WINDOWS’SAPLOGON.INI
@echo.>> C:’WINDOWS’SAPLOGON.INI
@echo [SessManKey] >> C:’WINDOWS’SAPLOGON.INI
@echo Item1=1 >> C:’WINDOWS’SAPLOGON.INI
@echo Item2=3 >> C:’WINDOWS’SAPLOGON.INI
@echo Item3=2 >> C:’WINDOWS’SAPLOGON.INI
@echo.>> C:’WINDOWS’SAPLOGON.INI
@echo [SncName] >> C:’WINDOWS’SAPLOGON.INI
@echo Item1= >> C:’WINDOWS’SAPLOGON.INI
@echo Item2= >> C:’WINDOWS’SAPLOGON.INI
@echo Item3= >> C:’WINDOWS’SAPLOGON.INI
@echo.>> C:’WINDOWS’SAPLOGON.INI
@echo [SncChoice] >> C:’WINDOWS’SAPLOGON.INI
@echo Item1=-1 >> C:’WINDOWS’SAPLOGON.INI
@echo Item2=-1 >> C:’WINDOWS’SAPLOGON.INI
@echo Item3=-1 >> C:’WINDOWS’SAPLOGON.INI
@echo.>> C:’WINDOWS’SAPLOGON.INI
@echo 90 precent completed
@echo [Codepage] >> C:’WINDOWS’SAPLOGON.INI
@echo Item1=1100 >> C:’WINDOWS’SAPLOGON.INI
@echo Item2=1100 >> C:’WINDOWS’SAPLOGON.INI
@echo Item3=1100 >> C:’WINDOWS’SAPLOGON.INI
@echo.>> C:’WINDOWS’SAPLOGON.INI
@echo [CodepageIndex] >> C:’WINDOWS’SAPLOGON.INI
@echo Item1=-1 >> C:’WINDOWS’SAPLOGON.INI
@echo Item2=-1 >> C:’WINDOWS’SAPLOGON.INI
@echo Item3=-1 >> C:’WINDOWS’SAPLOGON.INI
@echo.>> C:’WINDOWS’SAPLOGON.INI
@echo [Origin] >> C:’WINDOWS’SAPLOGON.INI
@echo Item1=USEREDIT >> C:’WINDOWS’SAPLOGON.INI
@echo Item2=USEREDIT >> C:’WINDOWS’SAPLOGON.INI
@echo Item3=USEREDIT >> C:’WINDOWS’SAPLOGON.INI
@echo.>> C:’WINDOWS’SAPLOGON.INI
@echo [LowSpeedConnection] >> C:’WINDOWS’SAPLOGON.INI
@echo Item1=0 >> C:’WINDOWS’SAPLOGON.INI
@echo Item2=0 >> C:’WINDOWS’SAPLOGON.INI
@echo Item3=0 >> C:’WINDOWS’SAPLOGON.INI
@echo.>> C:’WINDOWS’SAPLOGON.INI
@echo [Utf8Off] >> C:’WINDOWS’SAPLOGON.INI
@echo Item1=0 >> C:’WINDOWS’SAPLOGON.INI
@echo Item2=0 >> C:’WINDOWS’SAPLOGON.INI
@echo Item3=0 >> C:’WINDOWS’SAPLOGON.INI
@echo.>> C:’WINDOWS’SAPLOGON.INI
@echo [EncodingID] >> C:’WINDOWS’SAPLOGON.INI
@echo Item1= >> C:’WINDOWS’SAPLOGON.INI
@echo Item2= >> C:’WINDOWS’SAPLOGON.INI
@echo Item3= >> C:’WINDOWS’SAPLOGON.INI
@echo.>> C:’WINDOWS’SAPLOGON.INI
@echo [ShortcutType] >> C:’WINDOWS’SAPLOGON.INI
@echo Item1=0 >> C:’WINDOWS’SAPLOGON.INI
@echo Item2=0 >> C:’WINDOWS’SAPLOGON.INI
@echo Item3=0 >> C:’WINDOWS’SAPLOGON.INI
@echo.>> C:’WINDOWS’SAPLOGON.INI
@echo [ShortcutString] >> C:’WINDOWS’SAPLOGON.INI
@echo Item1= >> C:’WINDOWS’SAPLOGON.INI
@echo Item2= >> C:’WINDOWS’SAPLOGON.INI
@echo Item3= >> C:’WINDOWS’SAPLOGON.INI
@echo.>> C:’WINDOWS’SAPLOGON.INI
@echo [ShortcutTo] >> C:’WINDOWS’SAPLOGON.INI
@echo Item1= >> C:’WINDOWS’SAPLOGON.INI
@echo Item2= >> C:’WINDOWS’SAPLOGON.INI
@echo Item3= >> C:’WINDOWS’SAPLOGON.INI
@echo.>> C:’WINDOWS’SAPLOGON.INI
@echo [ShortcutBy] >> C:’WINDOWS’SAPLOGON.INI
@echo Item1= >> C:’WINDOWS’SAPLOGON.INI
@echo Item2= >> C:’WINDOWS’SAPLOGON.INI
@echo Item3= >> C:’WINDOWS’SAPLOGON.INI
@echo.>> C:’WINDOWS’SAPLOGON.INI
@echo 100 precent completed!
@echo You may close this window.



Attached Files: