How to make a job output text when exiting

Gerard

  • Joined: Dec 22, 2010
  • Posts: 10

Tue 5/29/2012 - 21:53

This is not the exit code (0 for success, 1 for unsuccessful run)..

 

Im talking about returning a text value. like a filepath may be.

 

In the function "Run DOS Command" there is a output called %CommandOutput% .....

 

How do i make a WinAuto job return such thing.

 

 

Thanks

#1

t-hex

  • Joined: Nov 13, 2011
  • Posts: 152

Sat 6/2/2012 - 6:31

Hi again :)

 

You won't get any output in the debugger/console window. You've to compile the job as a "Commandline Application" in Generate exe dialog. Then run the generated executable in cmd-line environment (Run > cmd > path to app > 'Enter' key)

 

Similary in WA environment, use 'Run DOS command' to grab the output from the generated app.

 

Try:

cmdLineApp_stdOut.waj

#2

Gerard

  • Joined: Dec 22, 2010
  • Posts: 10

Tue 7/3/2012 - 0:25

That works fine.

Thanks a lot :) .

#3
Not a member yet? Register

Copyright 2013 - Softomotive Ltd