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 Platform Community / Forums / Power Automate / How to uniquely identi...
Power Automate
Unanswered

How to uniquely identify multiple instances of a WPF application

(0) ShareShare
ReportReport
Posted on by 20

I want to be able to open 2 instances (but different versions) of a WPF application and perform actions on each. Their titles are the same, is there another way to distinguish them? Perhaps window handles, but how can I retrieve them?

I have the same question (0)
  • pollyo Profile Picture
    20 on at

    Found an answer with Powershell (not a complete script, just the essential part:)

     

    Start the first instance and get it's handle:

    (Get-Process ${appname}).MainWindowHandle

    Then start the next instance, run the PS script again, get 2 handles and the new one is the 2nd instance handle.

     

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