none
Script to get size of windows RRS feed

  • Question

  • Hey! 

    I want to write script to save size settings (Width,Height of windows) of actually runnings programs. In first step the most important for me are folders, but...

    in process i saw only one proces - explorer(i used get-process). How Can i get paths to this folders with powershell? Because running program path i can get with:

    Get-Process |where {$_.mainWindowTItle} |format-table id,name,mainwindowtitle,path –AutoSize 

    Second question is how to get information abut Windows size, buffer size etc? I used this:

    (Get-Host).UI.RawUi

    but this is only for current program.

    Sorry for my English :) 

    • Moved by Bill_Stewart Monday, July 30, 2018 9:39 PM This is not "scripts on demand"
    Tuesday, June 19, 2018 9:13 AM

All replies

  • You cannot do this with PowerShell.  It will take advanced programming techniques and the use of compiled code to access other programs Window structures.  Some of what you ask cannot be obtained outside of the system debugger API.


    \_(ツ)_/

    Tuesday, June 19, 2018 5:27 PM