Announcement

Collapse
No announcement yet.

Varables? exists? Conditional statements?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Varables? exists? Conditional statements?

    Any chance there will be something to allow the use of variable, if exists, or simple conditional statements. For instance if I want to run a program on a machine it could be in the C:\Program Files\<application> or C:\Program Files (x86)\<application> directory depending on if it's 32 bit o 64 bit.

    Having the ability to upload a script would probably be the quickest approach.

  • #2
    Hello dagint ,

    You should be able to upload the scripts through the "File Transfer" Action and combine it with the "Shell Execute" Action to execute the script you send to the workstation. This is achievable through Jobs > Job manager > Create > (fill in the details) > Next > New > Create a new procedure in the Jobs section of the RMM console by including the Actions mentioned above. Please let us know if this is what you were looking for.

    Comment


    • #3
      Originally posted by dagint View Post
      Any chance there will be something to allow the use of variable, if exists, or simple conditional statements. For instance if I want to run a program on a machine it could be in the C:\Program Files\<application> or C:\Program Files (x86)\<application> directory depending on if it's 32 bit o 64 bit.

      Having the ability to upload a script would probably be the quickest approach.
      I had also asked about this, a while back, when I started trying to build my procedures and jobs. They tell me that they put it on the road map. I figured it should at least include environmental variables, if not custom variables that we can set up in our console, for job purposes.

      Comment


      • #4
        Hi dagint BOSS ,

        We created a work around for ourselves by creating self-executing SFX packages for our own batch/program install and scripts uploaded to our web space and then created Application installer procedures to download and run the packages. we created a simple if exist argument in a setup batch file as part of the setup to detect if system is 32bit or 64bit and execute/run correct script/install based on the outcome.

        not sure if this will assist you but here is a basic batch file code


        :CheckOS
        IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)

        :64BIT
        echo 64-bit...
        64bitapp.exe
        GOTO END

        :32BIT
        echo 32-bit...
        32bitapp.exe
        GOTO END

        :END

        Comment


        • #5
          Originally posted by Marveltec View Post
          Hi dagint BOSS ,

          We created a work around for ourselves by creating self-executing SFX packages for our own batch/program install and scripts uploaded to our web space and then created Application installer procedures to download and run the packages. we created a simple if exist argument in a setup batch file as part of the setup to detect if system is 32bit or 64bit and execute/run correct script/install based on the outcome.

          not sure if this will assist you but here is a basic batch file code


          :CheckOS
          IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)

          :64BIT
          echo 64-bit...
          64bitapp.exe
          GOTO END

          :32BIT
          echo 32-bit...
          32bitapp.exe
          GOTO END

          :END
          Nice, thanks for the input!!

          Comment

          Working...
          X