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?
 
Bill PrewCommented:
Try each of the other options, only one at a time.  I commented them out so you could see them.

    ' .TileVertically
    ' .TileHorizontally


»bp
0
 
Shaun VermaakTechnical Specialist/DeveloperCommented:
0
 
Bill PrewCommented:
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
 
Shaun VermaakTechnical Specialist/DeveloperCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.