- This topic has 2 replies, 3 voices, and was last updated 13 years ago by .
-
Topic
-
It realy drives me crazy to constantly switch between our prod and test servers in the Cloverleaf GUI, and several times I’ve started making a change in the test system only to realize that I wasn’t in the test system.
The procedure below describes who I’m able to automatically switch between multiple Host/Site combos just by clicking on a
different icon. This has helped me out a lot but, of course, use it at your own risk.
Locate C:quovadxqdx5.6integratorclient
Make a directory called: USER
Copy client.ini ro the new USER directory
Go to the USER directory
Create ChangeEviron.cmd
Code:
@ECHO OFF
IF “%1″==”HOST1-SITE1.ini” GOTO ChangeFile
IF “%1″==”HOST2-SITE1.ini” GOTO ChangeFile
ECHO “%1” is not a valid argument!
pause
exit
:ChangeFile
COPY C:quovadxqdx5.6integratorclientUSER%1 C:quovadxqdx5.6integratorclientclient.ini
START C:quovadxqdx5.6integratorclguibinhciaccess.exe
exit
Edit the lines “last_host” and “last_environ” in CLIENT.INI to the host and site you wish to connect to
and save with a name similar to HOST1-SITE1.ini or HOST2-SITE2.ini. These names must match the ChangeEnviron.cmd IF statments or you will get an error.
Next create desktop shortcuts pointed to:
C:quovadxqdx5.6integratorclientUSERChangeEviron.cmd HOST1_SITE1.ini
C:quovadxqdx5.6integratorclientUSERChangeEviron.cmd HOST2_SITE1.ini
Now you’ll be able to switch between the several Host/Site combos by clinking on an icon.
The best part is HOST1 and HOST2(Prod and Test) can have different colored icons.
- The forum ‘Cloverleaf’ is closed to new topics and replies.