Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.comp.os.windows-10 > #184102
| From | "R.Wieser" <address@is.invalid> |
|---|---|
| Newsgroups | alt.comp.os.windows-10 |
| Subject | Re: No CMD |
| Date | 2025-04-27 13:12 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <vul3fm$mcia$1@dont-email.me> (permalink) |
| References | <vufl3g$3mbqe$1@dont-email.me> <MPG.42758d0ec45c307f9903e8@news.individual.net> <mpqo0kti8411giuev0tnsjnbasge3jhqaf@4ax.com> <1tt0rgib71ax4.dlg@v.nguard.lh> |
Vanguard, > For example, create an example.bat > file containing: > > echo List users ... > cmd.exe /c net users > echo > echo Check if Administrator is listed. Any reason you used "cmd.exe /c " there ? You're already in a commandline environment when you execute it (remove it and be amazed). > I've used batch scripts to do setup before cmd.exe, check > status afterward, and perform other actions both before and > after the cmd.exe call. Funny, I've been doing the same for years now, but have never had a(ny) need for that "cmd.exe /c ". > If I want the 2nd shell to pause for whatever it called > to execute that doesn't itself halt to show output, I have to > change /c to /k in either the batch script's call of cmd.exe, That, an automatic cleanup after manually exiting a second commandline shell, would be one of the /very few/ reasons to open a second shell with the /k switch. > or to the cmd.exe that the shortcut runs ... and that destroys the whole benefit of the above (the "automatic cleanup" would be executed before you got control). > In the OP's case, he had corrupted registry entries regarding > the command shell. Since he deleted those registry entries, > we don't know what they specified Remarkable that you just know those lines where corrupted*, even though you have no idea what was in them. * and not, for example, just altered due to having changed some settings in a dialog. But I guess "corrupted" sounds way more important than "inadvertedly changed". Regards, Rudy Wieser
Back to alt.comp.os.windows-10 | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
No CMD Ed Cryer <ed@somewhere.in.the.uk> - 2025-04-25 10:36 +0100
Re: No CMD Paul <nospam@needed.invalid> - 2025-04-25 06:31 -0400
Re: No CMD VanguardLH <V@nguard.LH> - 2025-04-25 06:05 -0500
Re: No CMD Ed Cryer <ed@somewhere.in.the.uk> - 2025-04-25 14:42 +0100
Re: No CMD MikeS <MikeS@fred.com> - 2025-04-25 15:47 +0100
Re: No CMD Ed Cryer <ed@somewhere.in.the.uk> - 2025-04-25 16:16 +0100
Re: No CMD VanguardLH <V@nguard.LH> - 2025-04-25 12:53 -0500
Re: No CMD Ed Cryer <ed@somewhere.in.the.uk> - 2025-04-25 20:05 +0100
Re: No CMD VanguardLH <V@nguard.LH> - 2025-04-25 20:53 -0500
Re: No CMD Ed Cryer <ed@somewhere.in.the.uk> - 2025-04-26 12:00 +0100
Re: No CMD Frank Slootweg <this@ddress.is.invalid> - 2025-04-26 15:01 +0000
Change of Subject (was: No CMD) VanguardLH <V@nguard.LH> - 2025-04-26 18:50 -0500
Re: Change of Subject Hank Rogers <Hank@nospam.invalid> - 2025-04-26 19:13 -0500
Re: Change of Subject VanguardLH <V@nguard.LH> - 2025-04-26 19:40 -0500
Re: Change of Subject Daniel70 <daniel47@eternal-september.org> - 2025-05-03 22:58 +1000
Re: Change of Subject VanguardLH <V@nguard.LH> - 2025-05-03 09:47 -0500
Re: No CMD Stan Brown <the_stan_brown@fastmail.fm> - 2025-04-26 15:48 -0700
Re: No CMD "...winston" <winstonmvp@gmail.com> - 2025-04-25 11:12 -0400
Re: No CMD Ed Cryer <ed@somewhere.in.the.uk> - 2025-04-25 17:19 +0100
SOLVED Ed Cryer <ed@somewhere.in.the.uk> - 2025-04-25 17:40 +0100
Re: SOLVED Paul <nospam@needed.invalid> - 2025-04-25 16:19 -0400
Re: SOLVED VanguardLH <V@nguard.LH> - 2025-04-25 22:19 -0500
Re: SOLVED Ed Cryer <ed@somewhere.in.the.uk> - 2025-05-13 18:47 +0100
Re: No CMD Stan Brown <the_stan_brown@fastmail.fm> - 2025-04-25 13:14 -0700
Re: No CMD Char Jackson <none@none.invalid> - 2025-04-26 00:14 -0500
Re: No CMD "R.Wieser" <address@is.invalid> - 2025-04-26 11:02 +0200
Re: No CMD Char Jackson <none@none.invalid> - 2025-04-26 20:48 -0500
Re: No CMD "R.Wieser" <address@is.invalid> - 2025-04-27 08:45 +0200
Re: No CMD Stan Brown <the_stan_brown@fastmail.fm> - 2025-04-26 15:52 -0700
Re: No CMD VanguardLH <V@nguard.LH> - 2025-04-26 19:36 -0500
Re: No CMD "R.Wieser" <address@is.invalid> - 2025-04-27 13:12 +0200
Re: No CMD John <Man@the.keyboard> - 2025-04-28 20:11 +0100
Re: No CMD "R.Wieser" <address@is.invalid> - 2025-04-28 23:15 +0200
csiph-web