home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 42,030 of 42,547   
   Robert Roland to All   
   Re: Is there a way to put a command wind   
   23 Apr 22 15:46:05   
   
   XPost: alt.comp.os.windows-10, alt.comp.microsoft.windows   
   From: fake@ddress.no   
      
   On Thu, 21 Apr 2022 18:42:52 +0100, Andy Burnelli    
   wrote:   
      
   >Is there a way to get rid of the command Window and not kill the process?   
      
   Herbert has already nailed it, but let me elaborate a bit.   
      
   In Windows, there are two types of programs: Console applications and   
   pure GUI applications.   
      
   It is not always easy to spot which is which, because a console   
   application can also create graphical windows.   
      
   A console application tells Windows that it needs a console, and   
   Windows will provide one. In Task Manager, you will see conhost.exe,   
   which is Windows' console. Some people think CMD.EXE is the console,   
   but it is not. CMD.EXE is just a console application. It requires   
   conhost.exe, just like the other console applications.   
      
   Your scrcpy program is a console application. It needs the console in   
   order to live. Like all console applications, if you kill the console,   
   the applications also dies.   
      
   There are ways to hide a window. There is a fourth "windowstyle" in   
   addition to "Maximized", "Minimized" and "Normal". It is called   
   "Hidden".   
      
   In your case, you mentioned that closing the graphical window will not   
   terminate the application. If the console window is hidden, this might   
   mean that you will have no way of terminating the application other   
   than killing it in Task Manager.   
      
   How do you normally terminate the application?   
   --   
   RoRo   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca