• Creator
    Topic
  • #4003
    Anonymous

    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
    Replies
  • #6825
    Support 1a
    Participant

    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

    #6823
    Anonymous

    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.
    bye

    #6824
    Support 1a
    Participant

    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.

    Regards,

    Advansys Support

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