Link to home
Start Free TrialLog in
Avatar of Rajat Sehgal
Rajat SehgalFlag for India

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 ?
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Avatar of Bill Prew
Bill Prew

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...

With CreateObject("Shell.Application")
    .CascadeWindows
    ' .TileVertically
    ' .TileHorizontally
End With

Open in new window


»bp
Avatar of Rajat Sehgal

ASKER

Through VBS script it gores to cascade windows, but we need  stacked OR side by side ?
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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();
}

Open in new window