web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Need to capture StdOut...
Power Automate
Answered

Need to capture StdOut from console app.

(0) ShareShare
ReportReport
Posted on by 225

I need to run a console app and direct its output to a file. When doing this from a CMD window, the usual format is: 

appToRun "cmdLineParams" >>output.log

I can get the app to run, with the correct command line parameters, but the standard output shows in the CMD window and is not redirected to the file. Is there any way to do this?

  • LogicSmith Profile Picture
    225 on at

    Found a workaround - put the entire command line in a batch file, and run that. I'm still working on how to get the return code back from the app called in the batch file.

  • Verified answer
    VJR Profile Picture
    7,635 on at

    Hope you have taken a look at Run DOS command and Read from CMD session actions.

  • LogicSmith Profile Picture
    225 on at

    Thanks! No, quit the search when I found System / Run Application. At that point, I didn't even know that DOS commands were treated separately from Windows apps. The organization of actions is sometimes less than intuitive. But yes, the Scripting / Run DOS Command works great for this.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 211 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 190

Last 30 days Overall leaderboard