Thursday, April 30, 2015

#62 : Playing with Windows COM

This script is nothing more than just playing with Windows COM shell. I don't see any purpose of it. But this is good for playing, because as much you play, you learn a lot. If you cannot play with something, you will never understand things completely.



$winshell = new-object -com Shell.Application
$winshell.explore("C:\tmp")
#--Cascade all windows --#
start-sleep -s 2
$winshell.cascadewindows()
#--Tile vertically --#
start-sleep -s 2
$winshell.tilevertically()
#--Minimize all --#
start-sleep -s 2
$winshell.minimizeall()
view raw playing_COM.ps1 hosted with ❤ by GitHub


Hope you like this post, send your comments to me!
Enjoy!

No comments:

Post a Comment

#112: How to handle xml document in Powershell?

 In PowerShell, you can handle XML data using various cmdlets and methods provided by the .NET Framework. Here's a basic guide on how to...