Creating menu for multible environment login

  • msurii
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
13 years 4 months ago #2635 by msurii
If you want to use a same user name to login to more than 1 T24 environment you can use the below windows scripts

This script needs to be copied to the below path in XP and home path for that user should be point to this directory
C:\default

remote.cmd
==========
menu.cmd


menu.cmd
========
@echo off
rem START /MAX NOTEPAD
:BEGIN
CLS
set TERM=VT220
set JBCLISTFILE=%HOME%\&SAVEDLISTS&
@echo ==============Menu=================
@echo 1. R05
@echo 2. CCDEV
@echo 3. BPOTEST
@echo 4. R07 MB
@echo 5. PRIME UAT
@echo 6. GLOBUS
@echo 7. EXIT
@echo off
set USER.INP=N
set /P USER.INP="Enter Your Choice ==>"
if /I "%USER.INP%" EQU "1" (
rem echo "User Input=%USER.INP%"
CD d:\globus\bnk.run
D:
CALL remote.cmd
GOTO BEGIN
)
if /I "%USER.INP%" EQU "2" (
CD D:\DEV\bnk\bnk.run
D:
CALL remote.cmd
GOTO BEGIN
)
if /I "%USER.INP%" EQU "3" (
CD C:\TEST\bnk.run
D:
CALL remote.cmd
GOTO BEGIN
)
if /I "%USER.INP%" EQU "4" (
CD D:\UAT\bnklive\TestBase.run
D:
CALL remote.cmd
GOTO BEGIN
)
if /I "%USER.INP%" EQU "5" (
CD D:\CCDEV\bnkuat\bnk.run
D:
CALL remote.cmd
GOTO BEGIN
)
if /I "%USER.INP%" EQU "6" (
CD e:\g13univ\bnk.run
E:
c:\ibm\uv\bin\uvsh.exe
GOTO BEGIN
)
if /I "%USER.INP%" EQU "7" (
exit
) else (
echo "Wrong Input=%USER.INP%"
pause
GOTO BEGIN
)

use TELNET LOCALHOST
login using the newly created user which is pointing to the home patch c:\default

Please Log in or Create an account to join the conversation.

Time to create page: 0.088 seconds