Command Prompt has no window

Page 1 of 2 12 LastLast

  1. Posts : 21
    Windows 7 Pro 32 bit
       #1

    Command Prompt has no window


    When I run Command prompt from accessories (using a shortcut) I see cmd.exe as a process using task manager. However it does not appear under the application tab and there is no window.
    Cmd.exe will run ok directly from c:\windows\system32\cmd.exe or pressing the windows key and typing cmd.exe into the search field.
    I read somewhere that HKEY_CURRENT_USER\Console\Fullscreen must be set to zero. I did that but it made no difference.
    Another suggestion was delete the following registry keys. However that made no difference either.

    [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft]
    [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies
    [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Group Policy]
    [HKEY_CURRENT_USER\Software\Policies\Microsoft]
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Group Policy] mode
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies

    If I start up in safe mode or login as a different user it works perfectly.
    I have a feeling it is a carryover from Windows Easy Transfer when I migrated from xp.
    Up till now I have lived with it by just using cmd.exe directly. However I have a new application that that uses cmd.exe and is being effected by it.
      My Computer


  2. Posts : 10,994
    Win 7 Pro 64-bit
       #2

    There may be some damaged or corrupt system files. If you haven't already done so, try running a System File Checker scan from an elevated command prompt (Option Two, this tutorial.) If damaged/corrupt files are found it may take running SFC three or more time to fix everything it can.

    SFC /SCANNOW Command - System File Checker

    If there were no integrity violations found after running SFC see if you can get cmd.exe to "run as administrator" using one of the options in this tutorial.

    Run as Administrator
      My Computer


  3. Posts : 21
    Windows 7 Pro 32 bit
    Thread Starter
       #3

    I should have mentioned I have run sfc/scannow. Although there was initally a corrupt file it was repaired but made no difference. A subsequent run of sfc/scannow found nothing. The same thing applies to running command prompt as administrator - it had no effect.
      My Computer


  4. Posts : 5,656
    Windows 7 Ultimate x64 SP1
       #4

    Go to C:\Windows\System32\cmd.exe - right click cmd.exe - send to - desktop

    cut the shortcut from desktop and paste in:
    C:\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Accessories
      My Computer


  5. Posts : 21
    Windows 7 Pro 32 bit
    Thread Starter
       #5

    Wow - That works. Your a legend. Many thanks. I had to put the shortcut into my login folder as it wasn't appearing under accessories in the startup menu under C:\Users\Default
      My Computer


  6. Posts : 6,285
    Windows 10 Pro X64
       #6

    This is what the properties for Command Prompt looks like on my Win 8.1 system. Should be the same for Win 7:

    Command Prompt has no window-commandpromptprops.jpg

    Compare it to yours?
      My Computer


  7. Posts : 21
    Windows 7 Pro 32 bit
    Thread Starter
       #7

    This is what the new shortcut looks like. It has the absolute path rather than environment variables. The old shortcut did use environment variables as yours does however it didn't work. So it looks like the environment variables are somehow the problem.
    Attached Thumbnails Attached Thumbnails Command Prompt has no window-command-prompt.png  
      My Computer


  8. Posts : 21
    Windows 7 Pro 32 bit
    Thread Starter
       #8

    Well I changed the absolute paths to environment variables and it still works. So environment variables were not the problem.
      My Computer


  9. Posts : 4,161
    Windows 7 Pro-x64
       #9

    Perhaps this add-on is causing a problem. What is it?
    Attached Thumbnails Attached Thumbnails Command Prompt has no window-addons.jpg  
      My Computer


  10. Posts : 21
    Windows 7 Pro 32 bit
    Thread Starter
       #10

    The add-on is "Actual Title Buttons". My main use of it is to force a window to stay always on top. But it isn't the problem as it didn't make any difference if it wasn't running.
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:07.
Find Us