Rajat Sehgal
asked on
Windows stacked for batch ?
Hello Experts,
How to set show windows stacked OR show windows side by side in win 7 from batch script ?
How to set show windows stacked OR show windows side by side in win 7 from batch script ?
I don't know of any way to do that in a pure DOS batch script, but you can do it easy enough with VBS script. Which could be called from a BAT script of course...
»bp
With CreateObject("Shell.Application")
.CascadeWindows
' .TileVertically
' .TileHorizontally
End With
»bp
ASKER
Through VBS script it gores to cascade windows, but we need stacked OR side by side ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
That is exactly what is used in the article btw
Shell32.Shell shell = new Shell32.Shell();
if (this.chkTileWindowsHorizontally.Checked)
{
shell.TileHorizontally();
}
else if (this.chkTileWindowsVertically.Checked)
{
shell.TileVertically();
}
https://www.experts-exchange.com/articles/31834/Window-Tiler.html