tylerauerbeck
tylerauerbeck

Reputation: 173

Minimizing and Maximizing Windows With VBscript or Batch files

I'm trying to find a way to maximize & minimize a certain application using vbscript or a batch file. I've seen multiple attempts at doing this but none of them seem to work. Does anybody have any suggestions, without having to download any third party software.

Upvotes: 0

Views: 3603

Answers (2)

user2605194
user2605194

Reputation:

If you are trying to maximize the batch window, you can use the code

Mode Con Cols=500 Lines=500

what this does is determine how many text blocks up and down there are, for example, if you changed cols to 20, you could fit twenty letters in that window. And Lines are the same way, but going up and down.

:edit sorry, I read your question wrong. either way, my answer was wrong. I think the only way is to maximize it from startup.

Upvotes: 0

Aacini
Aacini

Reputation: 67216

I think that /MIN and /MAX switches of START command should work, that is:

START "Window Title" /MAX YourApplication Parameters ...

Type START /? for further details.

Upvotes: 2

Related Questions