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: Problems using the CMD window

08 Jul 2011   #1
alishibaz

Windows 7 Home Premium 32bit
 
 
Problems using the CMD window

When I am using the CMD window and try to use the "delete" command on some text file in my C:\ root folder, the resulting message is "Access Denied".

I tried to use my user account with Administrator authority but it happens there too.

Is there any way to avoid this?


My System SpecsSystem Spec
.
08 Jul 2011   #2
richc46

Microsoft Community Contributor Award Recipient

Windows 10, Home Clean Install
 
 

Welcome
Do you use an elevated prompt, that is run as administrator?
Elevated Command Prompt
My System SpecsSystem Spec
08 Jul 2011   #3
Bill2

Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
 
 

You can try moving the file off the root of C: to a different folder or drive, then try deleting.

If this is not a system file, you can give yourself full permissions or take ownership.

Permissions - Allow or Deny Users and Groups

Take Ownership Shortcut
My System SpecsSystem Spec
.

08 Jul 2011   #4
alishibaz

Windows 7 Home Premium 32bit
 
 

Thank you both.

Richc46,

I got it to work find using your suggestion. But that leaves me with another problem.

You see, I normally open my CMD window in a batch file. The reason is that enables me to use a hotkey to open the window.

In XP, I opened the CMD window by using the START command as follows:

start "CMD Shell 1" CMD /T:0F "/K CD /D C:\"

But I find multiple versions of the file CMD.EXE under W7.

Specifically, I find CMD.EXE in the following directories.

C:\Windows\System32
C:\Windows\SysWOW64

Can you tell me if the one in C:\Windows\System32 is the one I should start in order to get an elevated prompt?
My System SpecsSystem Spec
08 Jul 2011   #5
alishibaz

Windows 7 Home Premium 32bit
 
 

Quote   Quote: Originally Posted by Bill2 View Post
You can try moving the file off the root of C: to a different folder or drive, then try deleting.

If this is not a system file, you can give yourself full permissions or take ownership.

Permissions - Allow or Deny Users and Groups

Take Ownership Shortcut
Thank you Bill. But I am a rank beginner with W7 and I have no idea what it means to take ownership or give myself full permissions. I don't know how to do either of those things.
My System SpecsSystem Spec
08 Jul 2011   #6
richc46

Microsoft Community Contributor Award Recipient

Windows 10, Home Clean Install
 
 

As far as I know its in system32
When you run elevated it shows system 32 by the cursor.
My System SpecsSystem Spec
08 Jul 2011   #7
Bill2

Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
 
 

Quote   Quote: Originally Posted by alishibaz View Post
Thank you both.

Richc46,

I got it to work find using your suggestion. But that leaves me with another problem.

You see, I normally open my CMD window in a batch file. The reason is that enables me to use a hotkey to open the window.

In XP, I opened the CMD window by using the START command as follows:

start "CMD Shell 1" CMD /T:0F "/K CD /D C:\"

But I find multiple versions of the file CMD.EXE under W7.

Specifically, I find CMD.EXE in the following directories.

C:\Windows\System32
C:\Windows\SysWOW64

Can you tell me if the one in C:\Windows\System32 is the one I should start in order to get an elevated prompt?
On 64 bit versions of windows the 32 bit CMD.exe can be found at C:\Windows\SysWoW64\cmd.exe.
My System SpecsSystem Spec
08 Jul 2011   #8
alishibaz

Windows 7 Home Premium 32bit
 
 

Thank you both very much. Lucky there aren't very many possibilities. So I will try them both and hopefully one will work.

P.S. Is there no way to send private messages to other users in this forum?
My System SpecsSystem Spec
08 Jul 2011   #9
richc46

Microsoft Community Contributor Award Recipient

Windows 10, Home Clean Install
 
 

You have 32 bit per your specs. Try system 32.
My System SpecsSystem Spec
08 Jul 2011   #10
Bill2

Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
 
 

Quote   Quote: Originally Posted by richc46 View Post
You have 32 bit per your specs. Try system 32.
Theres no Syswow64 folder in 32 bit windows.
My System SpecsSystem Spec
Reply

 Problems using the CMD window




Thread Tools




Similar help and support threads
Thread Forum
problems window 7 64 bit
I have just bought a new system i7 4770 and asus z87-pro and 8 gig of ram installed windows 7 64bit and burning a dvd takes 47 mins go to windows 7 32 bit takes 9 mins seems to me 64 bit operating system is crap also have the same problem with windows 8 64 bit.why do 64 bit operating system don't...
General Discussion
Problems of visualisation about window
I have been facing a problem after system restore. I can't explain everything in this thread. If I dragged any smaller size window in desktop it can't dragged along with cursor but showing a rectangular area same size as the window which I dragging. It means showing a area which has four arms...
General Discussion
Window 7 display problems
Windows 7 is taking the screen and reducing the size by 50%. It then shows two identicle screens on my laptop monitor. I checked my settings and it just recognizes the one laptop monitor. How do I make the screen full size and just show one of them?
Graphic Cards
My Problems with Window 7
Hello guys, I have bought an Acer laptop with Window 7 last week and I really wish I hadn't now... Problems so far: 1. It loses connection after half an hour and the wireless device adaptor or whatever it's called does not show any connections available (not just mine one..) 2. I...
Network & Sharing
Problems with window 7 installation !
Hello everyone here I downloaded the Windows 7 build 7100 and put it in computer. But I was not able to install the NVIAN-drivers, so the machine is running XP drivers. Similarly, I was not able to install the video driver. As for it gave to install it and all went well, but the program does not...
Installation & Setup


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 02:20.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App