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, 463 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
Reply

 Command Prompt




Thread Tools




Similar help and support threads
Thread Forum
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
Command Prompt: Repeat del command continuosly
Hi All, I'm running a program that parses .csv files and then changes them into ._OK files. This process takes longer when there are a large number of *.OK files in the folder where the files being converted are located. To remedy this I occasionally manually run this command: del *._OK ...
General Discussion
"Copy" command in command prompt generates 0x1a artifact?
Hello Everybody! I don't know if this is a real issue, or just one of those "What the . . . .!!" situations. You judge. Situation: I was working on a batch file that combines two .txt (ASCII?) files created in Notepad to create a composite file, and I noticed something really interesting. ...
Software
command prompt
Hi all i need you help me a thing :cry: I went to use autosave all text on command prompt (CMD), how can i do or use what command prompt cade for mark it autosave when i used command prompt. Example : Color 0a
General Discussion
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


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 00:57.
Twitter Facebook Google+