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 / how to run windows bat...
Power Automate
Answered

how to run windows batch file using power automate desktop

(0) ShareShare
ReportReport
Posted on by 32

Is there a way from which we can run windows batch file using power automate or power automate desktop ?

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    A batch file is nothing more than a series of text commands, right?  I feel like you should be able to read the text from the file, and paste that into a command prompt. 

    If “get text from file” doesn’t work on a .bat, then do this:

     

    Open Notepad, File, Open, open the .bat. (You can also do File and Open all with Send Keys {Alt}(f)o)
    Send keys {Control}(a)

    Send Keys {Control}(c)

    Get Clipboard Text to %ClipboardText%
    Open CMD Session

    Write to CMD %ClipboardText%

     

     

  • Lalit88 Profile Picture
    32 on at

    MichaelAnnis, I dint quite understood can you explain , can you give one sample example ?

  • Verified answer
    Highboy Profile Picture
    1,187 Super User 2024 Season 1 on at

    In PAD use this

    Highboy_0-1634199083159.png

    Highboy_0-1634204743917.png

     

     

  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    You can use the Run application action to run the file.

  • Lalit88 Profile Picture
    32 on at

    hey it worked thanks 

    Lalit88_0-1634645650660.png

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 282 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 159 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 146 Super User 2026 Season 2

Last 30 days Overall leaderboard