Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.comp.os.windows-10 > #158995
| From | Andy Burnelli <spam@nospam.com> |
|---|---|
| Newsgroups | alt.comp.os.windows-10, alt.msdos.batch, alt.comp.microsoft.windows |
| Subject | Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? |
| Date | 2022-04-22 02:07 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <t3sv4a$1489$1@gioia.aioe.org> (permalink) |
| References | <t3s52e$1ddc$1@gioia.aioe.org> <20220421204315.03ff044cdeef898a513382f1@127.0.0.1> <t3sgg5$j9f$1@gioia.aioe.org> <t3sk11$1snj$1@gioia.aioe.org> |
Cross-posted to 3 groups.
Herbert Kleebauer wrote: > It should matter. Well, to be clear, the "/c" vs "/k" matters sometimes. But not in the case of GUI programs, as you already surmised. > But I suppose scrcpy is a GUI program which will not > terminate itself. If I terminate the mirrored Android GUI window, the command window stays open even as the scrcpy command running inside of it exits. If I instead terminate that command window, then both the command window and the scrcpy mirrored GUI are terminated. > But if you exit scrcpy, then the CMD should also be closed. In Linux, I'd simply add an ampersand (&) to the end of the scrcpy command. That backgrounds the command such that killing the command window doesn't affect any process which is running in the background (which then can be brought to the fore when needed). > If you don't want that the CMD windows stays open, then use "start scrcpy". Hmmmmm.... gonna have to look that one up... and test to see if that works. <https://stackoverflow.com/questions/8121238/start-comspec-c-script-cmd-vs-start-cmd-c-script-cmd> "What is the difference between following commands:" "start %comspec% /c script.cmd "start cmd /C script.cmd" "I need that cmd window for script.cmd should close automatically when script.cmd is finished." Drat. It's the right question, but all the "answers" are off topic. (And the OP didn't chastise them for that. So there's no answer there.) Given "Win+R > start" fails to find the executable, let me look for the path... oh, geez, it's not an exexcutable in the normal sense of the word. dir /s/a/l/on/b C:\Windows\*.* | findstr "start" Ah! "start" is a special _internal_ command (much like "ver" is internal). <https://www.computerhope.com/jargon/i/intecomm.htm> That means "start" works _only_ inside an existing command window. <https://www.computerhope.com/starthlp.htm> So there's no way to use "start" without _first_ opening a command window. I'm working on getting the syntax right to either call the shortcut.lnk directly from the "Run" icon pinned to my taskbar, or, failing that, to pass the "start" to the command window via the "Run" icon pinned to my taskbar. The syntax isn't as easy to figure out as I would have thought due to the parallel nature of the run command, complicated by the fact it is an "internal command" so it only works _after_ the command window is opened. -- <https://ss64.com/nt/start.html> <https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/start> <https://www.howtogeek.com/tips/how-to-run-a-scheduled-task-without-a-command-window-appearing/> <https://www.windows-commandline.com/cmd-start-command/>
Back to alt.comp.os.windows-10 | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Is there a way to put a command window in the background like Linux does (so that you can kill it)? Andy Burnelli <spam@nospam.com> - 2022-04-21 18:42 +0100
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? "Kerr-Mudd, John" <admin@127.0.0.1> - 2022-04-21 20:43 +0100
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Andy Burnelli <spam@nospam.com> - 2022-04-21 21:57 +0100
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Herbert Kleebauer <klee@unibwm.de> - 2022-04-21 23:57 +0200
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Andy Burnelli <spam@nospam.com> - 2022-04-22 02:07 +0100
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Andy Burnelli <spam@nospam.com> - 2022-04-22 02:18 +0100
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Herbert Kleebauer <klee@unibwm.de> - 2022-04-22 07:45 +0200
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Andy Burnelli <spam@nospam.com> - 2022-04-22 09:32 +0100
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Andy Burns <usenet@andyburns.uk> - 2022-04-22 10:23 +0100
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? MikeS <MikeS@fred.com> - 2022-04-22 13:06 +0100
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? "Kerr-Mudd, John" <admin@127.0.0.1> - 2022-04-22 13:28 +0100
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Herbert Kleebauer <klee@unibwm.de> - 2022-04-22 13:40 +0200
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Andy Burnelli <spam@nospam.com> - 2022-04-22 22:26 +0100
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Herbert Kleebauer <klee@unibwm.de> - 2022-04-23 09:12 +0200
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Andy Burnelli <spam@nospam.com> - 2022-04-23 13:36 +0100
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Herbert Kleebauer <klee@unibwm.de> - 2022-04-23 17:04 +0200
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Herbert Kleebauer <klee@unibwm.de> - 2022-04-23 17:07 +0200
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Andy Burnelli <spam@nospam.com> - 2022-04-23 20:13 +0100
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Herbert Kleebauer <klee@unibwm.de> - 2022-04-23 17:15 +0200
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Andy Burnelli <spam@nospam.com> - 2022-04-23 17:53 +0100
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Andy Burnelli <spam@nospam.com> - 2022-04-23 17:22 +0100
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Andy Burnelli <spam@nospam.com> - 2022-04-29 17:49 +0100
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Andy Burnelli <spam@nospam.com> - 2022-04-23 14:17 +0100
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Andy Burnelli <spam@nospam.com> - 2022-04-23 14:25 +0100
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Robert Roland <fake@ddress.no> - 2022-04-23 15:46 +0200
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Andy Burnelli <spam@nospam.com> - 2022-04-23 15:59 +0100
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Robert Roland <fake@ddress.no> - 2022-04-24 00:34 +0200
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Andy Burnelli <spam@nospam.com> - 2022-04-24 04:09 +0100
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Herbert Kleebauer <klee@unibwm.de> - 2022-04-24 18:07 +0200
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Andy Burnelli <spam@nospam.com> - 2022-04-25 01:06 +0100
The various kinds of Windows applications... (Was: Is there a way to put a command window in the background like Linux does (so that you can kill it)?) gazelle@shell.xmission.com (Kenny McCormack) - 2022-04-24 12:44 +0000
Re: The various kinds of Windows applications... (Was: Is there a way to put a command window in the background like Linux does (so that you can kill it)?) Andy Burnelli <spam@nospam.com> - 2022-04-27 12:14 +0100
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2022-04-24 00:19 +0800
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Andy Burnelli <spam@nospam.com> - 2022-04-29 16:54 +0100
Re: Is there a way to put a command window in the background like Linux does (so that you can kill it)? Andy Burnelli <spam@nospam.com> - 2022-04-27 12:19 +0100
csiph-web