• Creator
  • #4003

      I am running a program (.exe VB Application).
      I am using the groupwise.RunProgram method. I would like to stop the formativ code from running until the .exe has completed. Is there any way to achieve this?

    • Author
    • #6825
      Support 1a

        You currently need to use the Windows script host to start the process if you need to wait for the process to finish. Here’s an example:

        dim oWSScript
          on error resume next
          set oWSScript = CreateObject("WScript.Shell")
          if oWSScript is nothing then    
            exit sub
          end if
          call oWSScript.Run("c:winntsystem32calc.exe", 0, TRUE)
          msgbox "Program completed"
          set oWSScript = nothing

        I hope this helps.

        Advansys Support


          Good Afternoon,

          It’s possible with this method, when the user close the application (word or another ) to receive the name how it’s save as in the application ?.

          Thanks for your help.

          Support 1a

            I am not aware of any standard means by which you could query this information. I suspect you would need to query the native application before it was shut down to determine this kind of information. The actual approach would vary based on the application in question.


            Advansys Support

          Viewing 3 replies - 1 through 3 (of 3 total)
          • You must be logged in to reply to this topic.