USer22999299
USer22999299

Reputation: 5674

How can I re-size multiple CMD windows using batch?

I need to open 6 cmd windows for my Erlang work. But.. I need to resize/move them.

Heres the 6 windows that will be opened:

start /d "C:\Users\**\Desktop\Erlang WorkingSpace\bin" erl.exe -setcookie talk -name [email protected] 
start /d "C:\Users\**\Desktop\Erlang WorkingSpace\bin" erl.exe -setcookie talk -name [email protected]
start /d "C:\Users\**\Desktop\Erlang WorkingSpace\bin" erl.exe -setcookie talk -name [email protected]
start /d "C:\Users\**\Desktop\Erlang WorkingSpace\bin" erl.exe -setcookie talk -name [email protected]
start /d "C:\Users\**\Desktop\Erlang WorkingSpace\bin" erl.exe -setcookie talk -name [email protected]

Thanks!

Upvotes: 1

Views: 1260

Answers (1)

user330315
user330315

Reputation:

You can resize the current commandline window using the mode command:

mode 140,50

will give you 140 columns and 50 rows.

However you cannot do that from another commandline window. If you need certain size, you will need to put the .exe call into a batch file and call mode from within the batchfile before running the exe.

Upvotes: 2

Related Questions