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

22 Jan 2012   #20
TManTM

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by whs View Post
If you have a prior restore point, you can try to recover the cmd.exe in the system32 folder with Shadow Explorer.
I tried the shadowexplorer and the nearest thing I have to cmd is the cmddll and cmdl32. Both don't do the cmd.

Sorry, the cmd key opens the command prompt for a millesecond. Then it closes.


My System SpecsSystem Spec
22 Jan 2012   #21
Brink

64-bit Windows 10 Pro
 
 

Hello TmanTM,

You might see if running a sfc /scannow command may be able to restore the default C:\Windows\System32\cmd.exe file for you.
My System SpecsSystem Spec
22 Jan 2012   #22
TManTM

Windows 7 Ultimate x64
 
 

I have downloaded a windows xp version of the cmd.exe because I can't find a windows 7 version. I tried the sfc /scannow command but it says the restore process failed to start or something like that. Should I njust use the cmd.exe that I downloaded?
My System SpecsSystem Spec
22 Jan 2012   #23
Brink

64-bit Windows 10 Pro
 
 

TmanTM,

No, don't use a XP copy. Here's a clean copy from my system in ZIP file below. After you download the ZIP file, extract (drag and drop) the cmd.exe file to your desktop, unblock the extracted cmd.exe file, then copy it into your C:\Windows\System32 folder.


Attached Files
File Type: zip cmd.zip (118.5 KB, 440 views)
My System SpecsSystem Spec
.

22 Jan 2012   #24
TManTM

Windows 7 Ultimate x64
 
 

It is working now. Thank you so much for your time and effort.
My System SpecsSystem Spec
22 Jan 2012   #25
Brink

64-bit Windows 10 Pro
 
 

You're most welcome TManTM.
My System SpecsSystem Spec
11 Apr 2014   #26
Henrys

64
 
 

Hello, I tried each of the methods to open a command prompt not as an administrator, and each of the methods resulted in me getting a command prompt window as an administrator. Does this mean I have a setting somewhere to make the command prompt open as an administrator of which I am not aware? Advice to resolve this would be appreciated. (Windows 7 Home)
Regards,
Henry
My System SpecsSystem Spec
11 Apr 2014   #27
Brink

64-bit Windows 10 Pro
 
 

Hello Henrys,

As a test, type diskpart in the command prompt and press Enter to see if you are prompted by UAC or get an access denied message.
My System SpecsSystem Spec
11 Apr 2014   #28
Henrys

64
 
 

I can run Diskpart.
My System SpecsSystem Spec
11 Apr 2014   #29
Henrys

64
 
 

The main reason I wanted to run the command prompt not as an administrator was because I wanted to run the ASP.NET Configuration tool in VS2013 and I found a blog that included instructions to do so.
Accessing the ASP.NET Web Configuration Tool in Visual Studio 2013 - .NET Web Development and Tools Blog - Site Home - MSDN Blogs

However, I decided when I need the ASP.NET configuration tool I will use it in VS2012, then resume my work in VS2013. It is a simple solution. So now there is no need to run the cmd not as an admin, except for knowledge sake, which is optional at this point.

If you happen to know what would cause one to always run the command prompt as an admin it would be appreciated. I think at one time, I may have tinkered with some settings thinking as a web developer I'd "always" want to run as an admin to do my work, so I might as well set the thing to do so, but it's been so long that I don't recall how to undo the setting, or even what settings I may have changed.

Appreciate the help.
My System SpecsSystem Spec
Comment

 Command Prompt




Tutorial Tools




Similar help and support threads
Windows 7 Tutorial Category
Command Prompt command <ipconfig> not working
when I open up my command prompt and type 'ipconfig' without the ' and press enter it returns the line: 'ipconfig' is nto recognized as an internal or external command, operable program, or batch file I am trying to find out the information I need in order to set up a static IP Address for port...
Network & Sharing
How to fix MBR through command prompt?
Question: What commands could I run in the command prompt during the system recovery? I try & run say "fixmbr" but it doesn't work. Say if I want to write a new master boot record how would I do that?
General Discussion
SSH command prompt
Is there any way I can use ssh or something similar to enter command line prompts from my Mac terminal, similar to SSH but windows commands? (From mac to a windows 7 desktop)
Performance & Maintenance
Run administrative command prompt from command prompt
Ok So I got myself into a unique bind here. I was trying to install some custom system files (for a theme) and I did it wrong and now I cant open explorer.exe . I dont want to goto a backup because this is a easy fix. (in my view). So I need to know how to run command prompt with administrative...
General Discussion
Command Prompt
Ok so every time I try to open the command prompt using an external source (batch file, small c++ program i made to say Hi to me through the command prompt) it instantly closes. Does anyone have any idea why this is happening and if so how can I fix it? Thanks, Wave
General Discussion
command prompt bug ?
Hi, I just tryed to use cmd as usual but it seems that I can't explore an other HDD than C: It bugs me I don't understand why i'm the only user on my computer and I am admin on it I at home so it should work but when I type "cd d:" I get that : ...
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 05:13.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App