Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.os.windows-10 > #183976

Re: No CMD

From "...winston" <winstonmvp@gmail.com>
Newsgroups alt.comp.os.windows-10
Subject Re: No CMD
Date 2025-04-25 11:12 -0400
Organization A noiseless patient Spider
Message-ID <vug8ok$7sa9$1@dont-email.me> (permalink)
References <vufl3g$3mbqe$1@dont-email.me> <1hbep0t9dtez7$.dlg@v.nguard.lh>

Show all headers | View raw


VanguardLH wrote:
> Ed Cryer <ed@somewhere.in.the.uk> wrote:
> 
>> On two of my Win10 systems, I can swap between Powershell and command
>> prompt. But on the third there's a most peculiar problem.
>> Settings/Personalisation/Taskbar has the option to switch between the
>> two. When I set it to CMD, CMD appears for a second in a tiny window and
>> then disappears. I can't get it to stay put.
>>
>> I've run DISM and sfc, have the latest 22H2 19045.5796 build.
> 
> Not sure what config wizard setting to which you refer.  When I
> right-click on a blank area of the Taskbar, click on Taskbar Settings in
> the context menu, I don't see a toggle choosing between Command or
> Powershell.  I see:
> 
>    Replace Command Prompt with Windows PowerShell in the menu
>    when I right-click the start button or press Windows key+X.
> 
> The only times I start cmd.exe this way is when reading some online help
> file on starting cmd.exe.  I use a shortcut to cmd.exe, and the shortcut
> is in a toolbar in the Taskbar configured to run with admin privs (so
> the UAC prompt appears).  I can also click on the Start menu button, and
> enter "cmd" which shows Command Prompt as a match.  The first match
> opens in non-admin mode.  Another match let me click on its rightward
> chevron to get more choices, like Open or Run as administrator.
> 
> How are you starting cmd.exe?  If using a shortcut, make sure to add the
> /k command-line argument to keep open the console window, like:
> 
> cmd.exe /k
> 
> Normally, when cmd is done running whatever your told it to run, the
> console window closes, because the cmd shell unloads after running
> whatever you told cmd.exe to run.  You want to keep the shell loaded, so
> add /k switch.  Also check which cmd.exe the shortcut specifies.  Have
> it point at the one under the system32 folder.
> 
> In Task Manager, check if any instances of cmd.exe are running.  If so,
> kill them.  You don't say how you run cmd.  Try the following:
> 
> - Bring up the Task Manager (Ctrl+Shift+Esc).
>      o Select the Details tab.
>      o Click on the Name column header to sort by process name.
>      o Scroll down to where the C's would start.
>      o Check there are no running instances of cmd.exe
> - Run cmd.exe:
>      o Bring up the Run dialog (Win+R).
>      o Or, use the File -> Run new task menu in Task Manager.
> - Enter: cmd.exe.  Include the .exe extension.  Click OK.
> 
> See a console window now?
> Did the console window stay open?
> In Task Manager, did you see cmd.exe show up?
> 
> If you saw cmd.exe show up in Task Manager, but only temporarily, and
> its console window did not stay open, do the above again; however,
> instead of relying on pathing to find the cmd.exe executable file, enter
> the full path to the executable: c:\windows\system32\cmd.exe.
> 
> Look in Event Viewer to see if an error got reported when trying to load
> cmd.exe.
> 
> cmd.exe is one of the programs often attacked by malware to prevent the
> user from have a low-level tool to undo the malware.  Run a full scan
> using your anti-virus software.  If using Windows Defender, see:
> 
> https://learn.microsoft.com/en-us/defender-endpoint/command-line-arguments-microsoft-defender-antivirus
> 
> and run:
> 
> mpcmdrun.exe -scan -scantype 2
> 
> Defender's manual scan is slow, so it will take a long time to complete.
> If its console window disappears after it completes, so you don't get to
> see its output, pipe stdout into a file to open in Notepad, like:
> 
> mpcmdrun.exe -scan -scantype 2 > %temp%\mpscan.txt & notepad %temp%\mpscan.txt
> 

Settings/Personalization/Taskbar/ yields the same settings options as 
Rt.Click Taskbar/Taskbar Settings

The only purpose of this settings is to change what is shown(Command.com 
or Powershell) in the window for the Start Menu button(right click) or 
the Quick Menu(Windows key + X).
  i.e. it doesn't run Command.com or Powershell


The symptom of running Command.com from the above menu options and 
resulting in it disappearing(brief window) was a known issue quite some 
time ago(circa 20H2)
  - the fix was to access the command.com shortcut and ensure it was 
configured to run in a normal window but not run in a 
minimized/maximized window. If set to 'normal' temporarily toggle it to 
minimized or maximum, restart, then reset back to normal.
  - Note: Even when changing the shortcut properties to use the 
command.com /k option, it was still necessary to reset/toggle/toggle 
back the properties window setting. Since multiple access points(to 
command.com) in Windows or user configured/created shortcuts exist, all 
command.com shortcuts should be configured/reset to run in the same 
window(e.g. Normal). Finally, configuring the shortcut to run-as Admin 
or not is not related to the disappearing issue(it can be admin or not).

-- 
...w¡ñ§±¤ñ

Back to alt.comp.os.windows-10 | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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