Step by step how to create a batch file to replace saplogin.ini
Step by step how to create a batch file to replace saplogin.ini
Steps:
- At times we might need to update items in Sap Logon pad.
- The fastest way to do so is to replace the saplogin.ini. (located c:’windows’)
- Now to backup your original saplogon.ini - just rename it to saplogon.bak.ss
- Open saplogon.ini in a notepad. This is how it looks like:
- 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" - Open the batch file and replace IP address with your own servers below
- The above IP address correspond to below system number.
- Now you can replace your server description accordingly
- Lastly, replace the system name.
- Save the "SAPLOGON-BATCH-SAMPL.BAT" on the desktop
- 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.