Mark Minasi's Tech Forum
Register Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
sumith.sudesan

Still Checking the Forum Out
Registered:
Posts: 2
Reply with quote  #1 
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???
0
Pieter

Avatar / Picture

Senior Member
Registered:
Posts: 215
Reply with quote  #2 
Hi, not sure what your are aiming.

But I'll give it a try.

echo 2 | testapp.exe

will send "2" as an input to the application testapp.exe.

example :  echo Y | choice.

__________________
Pieter Demeulemeester
0
jsclmedave

Administrator
Registered:
Posts: 460
Reply with quote  #3 
Quote:
Originally Posted by Pieter
Hi, not sure what your are aiming.

But I'll give it a try.

echo 2 | testapp.exe

will send "2" as an input to the application testapp.exe.

example :  echo Y | choice.


I pass credentials to an EXE called RVTOOLS.  If you google RVTOOLS + PowerShell there are several examples that may help with your EXE.

__________________
Tim Bolton @jsclmedave
Email: [string](0..20|%{[char][int](32+('527377347976847978324785847679797514357977').substring(($_*2),2))}) -replace ' '  

New to the forum? Please Read this
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.