How to make a job output text when exiting
Gerard
![]()
- Joined: Dec 22, 2010
- Posts: 10
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
t-hex
![]()
- Joined: Nov 13, 2011
- Posts: 152
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:
Gerard
![]()
- Joined: Dec 22, 2010
- Posts: 10
That works fine.
Thanks a lot :) .
Login to post a reply Not a member yet? Register