cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Lalit88
New Member

how to run windows batch file using power automate desktop

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

4 REPLIES 4
MichaelAnnis
Impactful Individual
Impactful Individual

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%

 

 

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

In PAD use this

Highboy_0-1634199083159.png

Highboy_0-1634204743917.png

 

 

Henrik_M
Super User
Super User

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

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,253)