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 / Building a flow that s...
Power Automate
Unanswered

Building a flow that starts by opening a Command Prompt

(0) ShareShare
ReportReport
Posted on by

I'm one of the many who encounter the problem where my taskbar stops auto-hiding. The only way to restore it to normal function is to go into Task Manager (or open a DOS command screen), kill explorer.exe, and then run explorer.exe. It comes back like normal and stays like that until ... the next time it feels like not auto-hiding. 😐

 

I'm trying to use Power Automate for a solution to expedite the fix: create a flow consisting of initiating Command Prompt, entering the kill explorer.exe text line, entering explorer.exe, and exiting. Being able to run this flow would be a god-send.

 

Trouble is: I can't make it work. I can't get it to start by initiating the Command Prompt, which means the flow fails right at the beginning because it doesn't have a place to enter the text lines in the subsequent steps of the flow. Can someone out there offer a little guidance on how to set up a Power Automate flow that starts by opening the Command prompt (so that the subsequent text entry commands go into the Command prompt window? Thanks much!

Categories:
I have the same question (0)
  • srApps Profile Picture
    306 on at

    Are you choosing PA Desktop to do this as a learning experience? I can't help with that as I've not used it, but I'm all for learning. A batch file is quick and easy too though and may be the right/easier tool to do the job. Open Notepad and type in:

    taskkill /f /im explorer.exe
    start explorer.exe

    Save as restart-explorer.bat to your desktop. Double click and it does the trick.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 997

#2
Valantis Profile Picture

Valantis 810

#3
Haque Profile Picture

Haque 642

Last 30 days Overall leaderboard