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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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() |
Hope you like this post, send your comments to me!
Enjoy!