Solved Problems using the CMD window

alishibaz

New member
Member
Local time
9:22 AM
Messages
41
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 Computer

OS
Windows 7 Home Premium 32bit

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell XPS 420
OS
Windows 10, Home Clean Install
CPU
Intel Core2 processsor Q8200(2.33Ghz 1333FSB) Quad Core Tech
Motherboard
Dell
Memory
6 gb
Graphics Card(s)
ATI Radeon 256MB HD3650
Sound Card
Intergrated 7.1 Channel Audio
Monitor(s) Displays
Dell SP2009W 20"
Hard Drives
640 GB Serial ATA Hard drive
Cooling
Fan
Keyboard
Dell USB Keyboard
Mouse
Dell Premium Optical USB
Internet Speed
DSL 2.85

My Computer

Computer Manufacturer/Model Number
Too many to describe...
OS
Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
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 Computer

OS
Windows 7 Home Premium 32bit
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.

http://www.sevenforums.com/tutorials/122666-permissions-allow-deny-users-groups.html

http://www.sevenforums.com/tutorials/1911-take-ownership-shortcut.html

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 Computer

OS
Windows 7 Home Premium 32bit
As far as I know its in system32
When you run elevated it shows system 32 by the cursor.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell XPS 420
OS
Windows 10, Home Clean Install
CPU
Intel Core2 processsor Q8200(2.33Ghz 1333FSB) Quad Core Tech
Motherboard
Dell
Memory
6 gb
Graphics Card(s)
ATI Radeon 256MB HD3650
Sound Card
Intergrated 7.1 Channel Audio
Monitor(s) Displays
Dell SP2009W 20"
Hard Drives
640 GB Serial ATA Hard drive
Cooling
Fan
Keyboard
Dell USB Keyboard
Mouse
Dell Premium Optical USB
Internet Speed
DSL 2.85
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 Computer

Computer Manufacturer/Model Number
Too many to describe...
OS
Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
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 Computer

OS
Windows 7 Home Premium 32bit
You have 32 bit per your specs. Try system 32.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell XPS 420
OS
Windows 10, Home Clean Install
CPU
Intel Core2 processsor Q8200(2.33Ghz 1333FSB) Quad Core Tech
Motherboard
Dell
Memory
6 gb
Graphics Card(s)
ATI Radeon 256MB HD3650
Sound Card
Intergrated 7.1 Channel Audio
Monitor(s) Displays
Dell SP2009W 20"
Hard Drives
640 GB Serial ATA Hard drive
Cooling
Fan
Keyboard
Dell USB Keyboard
Mouse
Dell Premium Optical USB
Internet Speed
DSL 2.85

My Computer

Computer Manufacturer/Model Number
Too many to describe...
OS
Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
He wanted to try both. I was just informing to use system 32
 
Last edited:

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell XPS 420
OS
Windows 10, Home Clean Install
CPU
Intel Core2 processsor Q8200(2.33Ghz 1333FSB) Quad Core Tech
Motherboard
Dell
Memory
6 gb
Graphics Card(s)
ATI Radeon 256MB HD3650
Sound Card
Intergrated 7.1 Channel Audio
Monitor(s) Displays
Dell SP2009W 20"
Hard Drives
640 GB Serial ATA Hard drive
Cooling
Fan
Keyboard
Dell USB Keyboard
Mouse
Dell Premium Optical USB
Internet Speed
DSL 2.85
Sorry. Bad news.

I tried to run both versions of CMD.EXE and neither one would give me admin privileges.

I verified they are indeed different versions of the CMD processor (because the CMD.EXE files were of different sizes). But there must be something else required in order to get admin privilegest.

I tried to change to the same folder as the one in which the CMD.EXE file was contained - just in case it needed some file (like maybe a DLL) that was in the same folder. But, no luck at all.

To be clear, I have tried running both these versions of the Start command in a batch file:

cd \Windows\System32
start "CMD ADMIN" C:\Windows\System32\CMD /T:0F "/K CD /D C:\"

and

cd \Windows\SysWOW64
start "CMD ADMIN" C:\Windows\SysWOW64\CMD /T:0F "/K CD /D C:\"


I'm wondering what is the difference between left-clicking on the "Command Prompt" (in the start menu) and right-licking on it and then selecting "Run as Administrator".

When using XP, I would just use the following command in a batch file and I never had to specify any directories. I seemed to find the correct CMD.EXE file without my specifying any directory names.

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

My Computer

OS
Windows 7 Home Premium 32bit
Try both, you will see that it will be different. It is explained at the beginning of the tutorial.
One says systm 32, the other is your user account.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell XPS 420
OS
Windows 10, Home Clean Install
CPU
Intel Core2 processsor Q8200(2.33Ghz 1333FSB) Quad Core Tech
Motherboard
Dell
Memory
6 gb
Graphics Card(s)
ATI Radeon 256MB HD3650
Sound Card
Intergrated 7.1 Channel Audio
Monitor(s) Displays
Dell SP2009W 20"
Hard Drives
640 GB Serial ATA Hard drive
Cooling
Fan
Keyboard
Dell USB Keyboard
Mouse
Dell Premium Optical USB
Internet Speed
DSL 2.85
Back
Top