I’m trying to create a large popup window from a batch file to display what the next action user needs to take before continuing. I’m not sure if this is possible but I would like to try it out.
Here is what I got so far:
set USERS=(user1, user2)
set MESSAGE=some really long message here...... like 15 line.
for %%i in %USERS% do msg /Time:10 /w %%i %MESSAGE%
So all I need is to do is be able to resize the popup window and that’s all I need for this.
Thanks in advance.
I do not think you can re-size a popup window in batch, so you may have to either use another scripting language or create a small executable to replace the msg command. The executable could accept text, horizontal size, and vertical size parameters, and would then display the message. It could also return the result, if needed. You could replace
msg /Time:10 /w %%i %MESSAGE%in your code withstart SizedPopup.exe "A really long message", 200, 200to create a message box with the text “A really long message” that is 200 by 200 pixels. You can probably find such a program by googling, although I believe this would be fairly easy to write in any scripting language.