Unable to delete a file in Win 7

phacer

New member
Hello,

I've seen it's a few other threads about how to delete un-deletable files but it doesn't seem to be the same problem as I have.

About a week ago I downloaded a patch for a game. I was never able to open this patch because it says I don't have permission. And now I've realized I can't delete it either. I find this a little annoying when I prefer to be in control over my files and not something else. So I thought maybe you pro's here could help me?

I have attached three screen shots of what happens when I try. First one is just normal delete in explorer, second one shows that there is no owner of the file. And the third is some tries in cmd.

Hope you guys have some suggestions.

Cheers
André
 

Attachments

  • 1.jpg
    1.jpg
    33.2 KB · Views: 113
  • 2.jpg
    2.jpg
    91.1 KB · Views: 282
  • 3.jpg
    3.jpg
    58.7 KB · Views: 317

My Computer

OS
Windows 7

My Computer

Computer Manufacturer/Model Number
Apple Macbook Pro (April 2009)
OS
W7 Ult. x64 | OS X
CPU
Intel Mobile Core 2 Duo 2.93Ghz [T9800 Penryn]
Motherboard
NVIDIA nForce 730i Rev. B1 [Mac-F2268EC8 (U2E1)]
Memory
4096MB Samsung DDR3 Dual Channel [PC3-8500F 1066Mhz]
Graphics Card(s)
NVIDIA GeForce 9600M GT 512MB [G96M Rev. C1]
Sound Card
SB X-Fi Surround 5.1 USB | Onboard Realtek (Disabled)
Monitor(s) Displays
Acer x223wbd 22" | Apple Anti-Glare 17" (Disabled)
Screen Resolution
{Current} 1440x900 {Acer} 1680x1050 {Apple} 1920x1200
Hard Drives
{Internal}
Seagate Momentus 320GB 2.5" 7200RPM [ST9320421AS]

{Externals}
LaCie 320GB USB 2.0 HDD [301284UR]
LaCie 750GB USB 2.0 FW400 eSATA HDD [301314U]
LaCie 1TB USB 2.0 HDD [301304UR]
PSU
Magsafe
Case
Aluminum/Unibody (MBP52)
Cooling
2 x 6000 RPM Fans
Keyboard
Logitech G-15v2 [PN 920-000379]
Mouse
Logitech G-9 [PN 910-000338]
Internet Speed
12Mbps/2.5Mbps w/ 24Mbps Speed Boost [Comcast]
Other Info
Logitech X-540 Speakers [PN 970223-0122]
Sennheiser PC-151 Headset

My Computer

Computer Manufacturer/Model Number
Custom
OS
Win7 HP (x64)/Win7 Ultimate (x64)
CPU
Core i7 920
Motherboard
Intel X58
Memory
6 x 2GB Corsair XMS3
Graphics Card(s)
CF HD4890
Sound Card
Asus Xonar
Monitor(s) Displays
Dell 2408WFP
Screen Resolution
1920 x 1200
Hard Drives
2 x 150GB WDC Velociraptors (Raid 0)
1 x 1TB Seagate
1 x 1.5TB Seagate
PSU
Corsair HX1000W
Case
Antec 1200
Keyboard
Razer Lycosa/N52te
Mouse
Razer Lachesis
Hi guys,
this is my first post here and i want to say: "hello" to everybody outta there.

So I have similar problem:
I want to install steam. While updating there is an error: "deleted steam.exe but the file is still there". I tried to go to the folder where it is located and delete it on my own. Another error: "Access denied" (Logged on as admin). Tried to take owership but the problem is still there. Next try was to look which process is locking the file. LockHunter says that the system process is locking it and i also cant unlock it. And after bout 1min the file is deleted.
Same problem appears with visual studio 2010. Trying to debugg one app then stop debugging in the middle of the programm, try to recompile file but linker says: "cant open file for writting".

Hope you can help me
Blessed Love Pingu

PS: also tried to uninstall avira cuz steam.com says some anti virus programm cuz problems but also no help
 

My Computer

OS
Windows 7
This is interesting! Not even with two of the unlockers can I first open and select the file to the program. It says the same thing that access is denied.

Any suggestions?
 

My Computer

OS
Windows 7
Phacer,
I ran across this problem once. The problem is that I can't remember how I solved it.

Try this:
WIN key | type cmd.exe | rt-click on cmd.exe in the program list shown | select Run as administrator

Now that you are at the command prompt navigate to where the file is located.
First try DIR to see if file is listed.
If not try ATTRIB
You will probably find that the System, Hide, and Read-only attributes must be cleared.

After clearing the attributes, can you delete the file?
If not,
Then run PowerShell as administrator.

Procedure for running PowerShell as administrator is same as that for cmd.exe

Once in powershell, navigate to the file.
now try following command: DEL nameoftheproblemfile -FORCE
 

My Computer

Computer Manufacturer/Model Number
Toshiba Satellite S875D-S7239 laptop
OS
MS Windows 7 Ultimate SP1 64-bit
CPU
AMD A10-4600M
Motherboard
AMD Pumori (Socket FT1)
Memory
6.00 GB Dual-Channel DDR3 @ 798MHz (11-11-12-28)
Graphics Card(s)
AMD Radeon HD 7660G
Sound Card
High Definition Audio Device
Monitor(s) Displays
Generic PnP Monitor (1600x900@60Hz)
Screen Resolution
1600x900@60Hz
Hard Drives
SSD 119GB Corsair CSSD-V128GB2 ATA Device
Keyboard
Standard PS/2 Keyboard
Mouse
HP Wireless Optical Mobile Mouse Model FHA-3410
Internet Speed
What the local pub, local coffee shop offers.
Other Info
Optical Drive:MATSHITA BD-CMB UJ160B ATA Device


Also have an Asus ha1002xp netbook with Win 7 Ultimate installed.
Nice, I never knew about Powershell, this is good to know! Thanks. =)

How ever the problem remains the same. Here is a screen shot of what happened in Powershell when I tried!
 

Attachments

  • 1.jpg
    1.jpg
    343.5 KB · Views: 1,291

My Computer

OS
Windows 7
Hi phacer
Have you tried taking ownership of the file via your admin credentials and then deleting it?
Would be good if you log into your admin account and then taking ownership via the properties tab.

Hope this helps
 

My Computer

Computer Manufacturer/Model Number
Custom
OS
Win7 HP (x64)/Win7 Ultimate (x64)
CPU
Core i7 920
Motherboard
Intel X58
Memory
6 x 2GB Corsair XMS3
Graphics Card(s)
CF HD4890
Sound Card
Asus Xonar
Monitor(s) Displays
Dell 2408WFP
Screen Resolution
1920 x 1200
Hard Drives
2 x 150GB WDC Velociraptors (Raid 0)
1 x 1TB Seagate
1 x 1.5TB Seagate
PSU
Corsair HX1000W
Case
Antec 1200
Keyboard
Razer Lycosa/N52te
Mouse
Razer Lachesis
Nice, I never knew about Powershell, this is good to know! Thanks. =)

How ever the problem remains the same. Here is a screen shot of what happened in Powershell when I tried!

Ok. Now are you logging on as administrator?

Create yourself an administrator account if you need one.

Log on with that administrator account.

I'm looking for my notes on manually taking ownership, as opposed to to using a .reg file.

Take Ownership of file - Vista Forums

Taking Ownership of Files and Folders
As an administrator you can take ownership of a file or folder as follows:
1. In Windows Explorer, rt-click on "properties" for the file or folder.
2. Security tab | Advanced
3. Owner tab| click Edit
4. In the Change Owner To list, select the new owner. To take ownership of all subfolders and files within the folder, select Replace Owner On Subcontainers And Objects option.
5. OK | OK

Assigning Ownership
As administrator or the current owner, you can assign ownership to another user or group as follows:
1. In Windows Explorer, rt-click on "Properties" for the file or folder.
2. Security tab | Advanced
3. Owner tab | Edit
4. Click Other Users Or Groups
5. Type the name of a user or a group | click Check Names | Choose the name you want if its not already filled in | OK
6. From the Change Owner list, select the new owner. For a folder, select Replace Owner On Subcontainers and Objects to assign ownership of all subfolders and files within the folder.
7. Ok | OK


What you want to do is assign yourself as the news owner.
 
Last edited by a moderator:

My Computer

Computer Manufacturer/Model Number
Toshiba Satellite S875D-S7239 laptop
OS
MS Windows 7 Ultimate SP1 64-bit
CPU
AMD A10-4600M
Motherboard
AMD Pumori (Socket FT1)
Memory
6.00 GB Dual-Channel DDR3 @ 798MHz (11-11-12-28)
Graphics Card(s)
AMD Radeon HD 7660G
Sound Card
High Definition Audio Device
Monitor(s) Displays
Generic PnP Monitor (1600x900@60Hz)
Screen Resolution
1600x900@60Hz
Hard Drives
SSD 119GB Corsair CSSD-V128GB2 ATA Device
Keyboard
Standard PS/2 Keyboard
Mouse
HP Wireless Optical Mobile Mouse Model FHA-3410
Internet Speed
What the local pub, local coffee shop offers.
Other Info
Optical Drive:MATSHITA BD-CMB UJ160B ATA Device


Also have an Asus ha1002xp netbook with Win 7 Ultimate installed.

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Shawn,
I like the idea behind the links you gave because by deleting using a Win DVD prompt or a System Repair prompt from the ram drive, he will be getting to the file before any malware.

I'm looking forward to hearing his answer.
karl
 
Last edited:

My Computer

Computer Manufacturer/Model Number
Toshiba Satellite S875D-S7239 laptop
OS
MS Windows 7 Ultimate SP1 64-bit
CPU
AMD A10-4600M
Motherboard
AMD Pumori (Socket FT1)
Memory
6.00 GB Dual-Channel DDR3 @ 798MHz (11-11-12-28)
Graphics Card(s)
AMD Radeon HD 7660G
Sound Card
High Definition Audio Device
Monitor(s) Displays
Generic PnP Monitor (1600x900@60Hz)
Screen Resolution
1600x900@60Hz
Hard Drives
SSD 119GB Corsair CSSD-V128GB2 ATA Device
Keyboard
Standard PS/2 Keyboard
Mouse
HP Wireless Optical Mobile Mouse Model FHA-3410
Internet Speed
What the local pub, local coffee shop offers.
Other Info
Optical Drive:MATSHITA BD-CMB UJ160B ATA Device


Also have an Asus ha1002xp netbook with Win 7 Ultimate installed.
Just a thought. Try killing explorer and then delete the file. Hope this helps.
 

My Computer

Computer Manufacturer/Model Number
Custom Built
OS
windows 7 ultimate x64
CPU
P4 3.0ghz Cedar Mill
Motherboard
Jetway P4M900-8237 Socket 775
Memory
Kingston 3gig DDR2 667
Graphics Card(s)
Nvidia Geforce 8400GS 256MB 64bit
Sound Card
Onboard VIA AC'97
Monitor(s) Displays
SyncMaster 793v
Screen Resolution
1024 X 768
Hard Drives
Seagate Barracuda 500, 160, & 80gig
PSU
Ordinary 500w PSU
Case
Homemade
Cooling
Stock Air Cooling & Electric Fan
Keyboard
Genius
Mouse
Genius
Internet Speed
1Mbps
Thanks guys!

Just now, my anti-virus program found this file after a week of having it as a suspicious file and deleted it without a problem at all. So problem solved I guess.

But I will write down what you wrote if this happens again. Thanks!
 

My Computer

OS
Windows 7
Hi,
just want to ask if someone could help with my problemd descriebed some post above.

Thank you.
Greetz Pingu
 

My Computer

OS
Windows 7
Hi Pingu

Try starting a new thread under system security.
someone will respond to your query under a new thread.

Take care and regards
 

My Computer

Computer Manufacturer/Model Number
Custom
OS
Win7 HP (x64)/Win7 Ultimate (x64)
CPU
Core i7 920
Motherboard
Intel X58
Memory
6 x 2GB Corsair XMS3
Graphics Card(s)
CF HD4890
Sound Card
Asus Xonar
Monitor(s) Displays
Dell 2408WFP
Screen Resolution
1920 x 1200
Hard Drives
2 x 150GB WDC Velociraptors (Raid 0)
1 x 1TB Seagate
1 x 1.5TB Seagate
PSU
Corsair HX1000W
Case
Antec 1200
Keyboard
Razer Lycosa/N52te
Mouse
Razer Lachesis
Back
Top