Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Command Prompt has no window

21 Jun 2015   #1

Windows 7 Pro 32 bit
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\Microsoft\Windows\CurrentVersion\Group Policy]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Group Policy] mode

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 System SpecsSystem Spec
21 Jun 2015   #2

Microsoft Community Contributor Award Recipient


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 System SpecsSystem Spec
21 Jun 2015   #3

Windows 7 Pro 32 bit

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 System SpecsSystem Spec

21 Jun 2015   #4

Windows 7 Ultimate x64 SP1

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 System SpecsSystem Spec
21 Jun 2015   #5

Windows 7 Pro 32 bit

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 System SpecsSystem Spec
21 Jun 2015   #6

Windows 10 Pro X64

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 System SpecsSystem Spec
21 Jun 2015   #7

Windows 7 Pro 32 bit

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 Images
Command Prompt has no window-command-prompt.png 
My System SpecsSystem Spec
21 Jun 2015   #8

Windows 7 Pro 32 bit

Well I changed the absolute paths to environment variables and it still works. So environment variables were not the problem.
My System SpecsSystem Spec
21 Jun 2015   #9

Windows 7 Pro-x64

Perhaps this add-on is causing a problem. What is it?

Attached Images
Command Prompt has no window-addons.jpg 
My System SpecsSystem Spec
22 Jun 2015   #10

Windows 7 Pro 32 bit

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 System SpecsSystem Spec

 Command Prompt has no window

Thread Tools

Similar help and support threads
Thread Forum
Setting the window icon for a command prompt window
I have a set of scheduled tasks, all of which run programs written in Open Object REXX. Consequently, the Command Prompt windows where these tasks runs inherit their icons (at the top left of the window) from the rexx.exe program that handles my scripts. This means that all of these REXX tasks...
General Discussion
Installation stuck with a command prompt window
Hi, I'm having an installation problem. I've previously done an installation of windows7 on my PC with no problems. However, I decided to reinstall windows when my PC was having some issues. I've chosen the 'upgrade' option when reinstalling windows. The problem came when I got a BSOD midway...
Installation & Setup
taskeng.exe opening in a Command Prompt window
Just now, I was reading posts here when a Command Prompt (black) windows opened, titled taskeng.exe. This is the Task Scheduler, right? Why is it opening a Command Prompt window, never did this before. I noticed The Windows update icon is now in the System area of the TaskBar, so I suspect it...
Windows Updates & Activation
Window and Text size in Command Prompt, Windows XP Mode
Anybody know how to change the text size in Windows XP Mode at the command prompt? I've tried right clicking on the DOS shortcut that I set up and changing it there, but it doesn't do anything. Also, I've set it to Full Screen, but everytime I execute a program, it shrinks to a smaller window....
Command Prompt From Explorer Window
How do I open a command prompt from an Explorer Window? Of course it must open at the same path without having to type in navigation commands (that's the whole point). Thanks, Jon
General Discussion

Our Sites

Site Links

About Us

Find 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 16:33.
Twitter Facebook