Windows stacked for batch ?

Hello Experts,
How to set show windows stacked OR show windows side by side in win 7 from batch script ?
LVL 1
Rajat SehgalFounder Enhance TechnologyAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Shaun VermaakTechnical SpecialistCommented:
0
Bill PrewIT / Software Engineering ConsultantCommented:
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
0
Rajat SehgalFounder Enhance TechnologyAuthor Commented:
Through VBS script it gores to cascade windows, but we need  stacked OR side by side ?
0
Bill PrewIT / Software Engineering ConsultantCommented:
Try each of the other options, only one at a time.  I commented them out so you could see them.

    ' .TileVertically
    ' .TileHorizontally


»bp
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Shaun VermaakTechnical SpecialistCommented:
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

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.