[powershell]automate the application

Welcome Forums General PowerShell Q&A [powershell]automate the application

This topic contains 1 reply, has 2 voices, and was last updated by

1 year ago.

  • Author
  • #102247

    Topics: 1
    Replies: 0
    Points: 0
    Rank: Member

    I have to automate the working of a console application (testapp.exe, written in c++).
    The application have different options:
    1. Get computer name
    2. List services in machine
    3. List running applications in machine

    The application shows prompt to enter option after the application starts.

    Is it possible to automate the application execution???

  • #102248

    Topics: 2
    Replies: 234
    Points: 185
    Team Member
    Rank: Participant

    There's various examples out there using Invoke-Expression to fire cmd.exe based commands. I'd recommend taking a look at some of them. Something like this:

    Invoke-Expression "mstsc.exe /v:$Connect $dimensions"

The topic ‘[powershell]automate the application’ is closed to new replies.