Launch GUI for specific environment or site with CLI param?

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Launch GUI for specific environment or site with CLI param?

  • Creator
    Topic
  • #53715
    Mike Strout
    Participant

      With many Windows apps, you can add parameters to the command that cause the application to change features or what displays. I haven’t been able to find any documentation about this for the hciaccess.exe app, but wonder if there is an undocumented feature out there.

      What I would like to do is run something like…

      C:healthvisioncis5.8integratorclguibinhciaccess.exe C:healthvisioncis5.8integratorclientcltest.ini (all on one line)

      or

      C:healthvisioncis5.8integratorclguibinhciaccess.exe C:healthvisioncis5.8integratorclienthci.ini (all on one line)

      … to launch either our tst or prd environment. If this would be possible, I could also change the icon so it would be very easy to see in the taskbar which running application is associated with which environment. I usually don’t like having both tst and prd gui’s at the same time as it could easily lead to inadvertent entries saved to the wrong environment.

      Mike Strout

    Viewing 2 reply threads
    • Author
      Replies
      • #78715
        bill bearden
        Participant

          I would like to be able to do that too. But I didn’t figure out how to do it that way, so here is what I did.

          I made multiple copies of client.ini, one for each site. The difference in each of the ini files is the line that sets the last_environ setting under the section for my user.

          Then, I created a Cloverleaf directory under my QuickLaunch directory. In that Cloverleaf directory, I created .cmd files for each site. Each .cmd file copies the site specific .ini file over the normal client.ini file and then starts the Cloverleaf GUI. Just to make it more complicated (actually, I don’t remember why I did this), I start the Cloverleaf GUI with a .vbs script.

          Here is an example of one of the .cmd files and the CL 6.0 version of the .vbs file.

          Code:

          c:
          cd cloverleafcis6.0integratorclient
          copy /Y client_crit_dev.ini client.ini
          z:
          cd _scriptsStartingCloverleaf
          wscript StartGUI6.vbs

          Code:

          dim objShell
          set objShell = Wscript.CreateObject( “WScript.Shell”)
          objShell.run(”c:cloverleafcis6.0integratorclguibinhciaccess.exe”)
          set objShell = Nothing

        • #78716
          Mark Thompson
          Participant

            It is very helpful to identify the environment by the icon color.

            You can create multiple versions of the $HCIROOTclientbrandbrand.png file and copy in the correct one the same time you update the client.ini file.

            Wouldn’t it be great if the icon color was determined by the sitecolor option configured for the site?

            - Mark Thompson
            HealthPartners

          • #78717
            Vince Angulo
            Participant

              I use the first method discussed in this thread.

              <a href="https://usspvlclovertch2.infor.com/viewtopic.php?t=3760&#8243; class=”bbcode_url”>https://usspvlclovertch2.infor.com/viewtopic.php?t=3760

              Maybe you’ll find it useful.

          Viewing 2 reply threads
          • The forum ‘Cloverleaf’ is closed to new topics and replies.