Thursday, November 27, 2025

How to click window button and open file explorer with powershell

 (New-Object -ComObject "wscript.shell").SendKeys("^{ESC}")


Start-Sleep -Seconds 3

[System.Windows.Forms.SendKeys]::SendWait("file explorere")


[System.Windows.Forms.SendKeys]::SendWait("{ENTER}")

No comments:

Post a Comment