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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Answered

Git Bash Terminal

(1) ShareShare
ReportReport
Posted on by 14
Has anyone successfully built a PAD automation interfacing with Git Bash command terminal? Looking for guidance/advice on what actions were used to achieve this.
 
Thank you.
I have the same question (0)
  • Suggested answer
    harish_sada Profile Picture
    53 on at

    Flow Steps:

    1. Install Git Bash.
    2. Open Git Bash and run the following command git init
     
     
     
     
     
     
     
     
     
     
     
     
    System.RunApplication.RunApplication ApplicationPath: $'''C:\\Program Files\\Git\\git-bash.exe''' WorkingDirectory: $'''C:\\Users\\''' WindowStyle: System.ProcessWindowStyle.Normal ProcessId=> AppProcessId
    UIAutomation.GetWindow.GetForegroundWindow WindowTitle=> WindowTitle WindowInstance=> AutomationWindow
    MouseAndKeyboard.SendKeys.FocusAndSendKeysByInstanceOrHandle WindowInstance: AutomationWindow TextToSend: $'''git status {Return}''' DelayBetweenKeystrokes: 20 SendTextAsHardwareKeys: False
    MouseAndKeyboard.SendKeys.FocusAndSendKeysByInstanceOrHandle WindowInstance: AutomationWindow TextToSend: $'''exit {Return}''' DelayBetweenKeystrokes: 20 SendTextAsHardwareKeys: False
     
     
     
  • deimospwns Profile Picture
    14 on at
     harish sada - thank you for the reply. this method was what I was thinking of using, are you able to get data back from the window?
  • Verified answer
    harish_sada Profile Picture
    53 on at
    Store the command results from the following steps in a text file
     
    git status > C:\\Users\\Desktop\\output.txt
    git log >> C:\\Users\\Desktop\\output.txt

     
     
     
     
     
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard