closing application window on powershell

Welcome Forums General PowerShell Q&A closing application window on powershell

Viewing 1 reply thread
  • Author
    Posts
    • #280905
      Participant
      Topics: 1
      Replies: 1
      Points: 14
      Rank: Member

      Hello All,

      I have this bit of code that opens a self made application and presses return.
      I want to then close the application but I cannot get it to close. This is my code. Anyone help? Thanks.

      • This topic was modified 1 month ago by zuzuzu01.
    • #280920
      Participant
      Topics: 5
      Replies: 249
      Points: 985
      Helping Hand
      Rank: Major Contributor

      I would change line 1 to:

      Then when you are done with your SendKeys you can:

       

      • #280926
        Participant
        Topics: 1
        Replies: 1
        Points: 14
        Rank: Member

        yes. perfect. Thanks very much 🙂

Viewing 1 reply thread
  • You must be logged in to reply to this topic.