View Single Post
  #17  
Old September 20th 18, 11:23 PM posted to alt.msdos.batch,alt.windows7.general
Zaidy036[_5_]
external usenet poster
 
Posts: 427
Default how to get the title into task manger 'window'?

On 9/20/2018 12:33 AM, VanguardLH wrote:
Zaidy036 wrote:

On 9/19/2018 5:19 PM, VanguardLH wrote:
Zaidy036 wrote:

I use Nircmd to rename, change size, and change position of CMD windows:

START "" /WAIT ...
^___ Could've set the new window's title right there.

Because you did not use the /b switch (to reuse the current shell), the
program loads in a new shell (which opens a new console window). You
can use the title parameter of the 'start' command to specify the title
for that new window.

The /wait switch means leaving open the console window for the current
shell until the called program/script exits in the other window. You'll
end up with two windows open: for the console shell where you ran
'start' and the one for within which the program/script runs.


Using Nircmd to change CMD window size and position would then require a
separate CMDs so this works fine for me especially since it does NOT
open a second CMD window.


I like Kleebauer's solution best: just use the 'title' command within
the batch file. However, doesn't do anything regarding positioning of
the window.

Nircmd does positioning - there is no native cmd to do it so why not
resize at the same time? Yes, MODE CON: will resize but not position.

--
Zaidy036
Ads