M
M
Maxim K2019-09-30 14:23:31
PowerShell
Maxim K, 2019-09-30 14:23:31

Make active window by window title name in powershell?

Hello. Tell me how to make the active window by the name of the title. In this way I close the window, but before closing - the window must be made active by name.
Get-Process name_process | Where {$_.MainWindowTitle -Match 'name_file'}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
azarij, 2019-09-30
@azarij

you can do this (unless the window is minimized to a tray icon):
SRC: https://stackoverflow.com/questions/4993926/maximi...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question