Page 2 of 2

Re: Batch file help. Needing to position windows.

Posted: 13 Jan 2019 05:40
by aGerman
It's basically the VBScript code found there:
… but translated to JScript. I hoped I would have been able to use the XCountChars and YCountChars members of the Win32_ProcessStartup class to run the CMD process with the window size already adjusted. That didn't work though. I had to use the MODE command wich makes it look rather clumsy with all the escaping of special characters.
Anyway, glad it helped.