How to force delete a file which is open in explorer.exe?

7o9

New member
Local time
3:57 AM
Messages
1
While I was emptying my Temp folder, I noticed there's this .txt file with size of 0KB. Didn't see it a week ago so it must've gotten on my PC recently, not entirely sure how exactly though. I got concerned when I tried deleting it (with admin rights even) but got an error the action cannot be performed because the file is open in explorer.exe. Not sure why this happens because I haven't installed anything that should be starting at boot. I've also tried deleting it by terminating explorer.exe in Task manager and then removing the file through command prompt, but that didn't work - the file is still there and all that changes is that I don't get an error message upon my attempt to delete it. I also tried deleting it in Safe Mode but the file just doesn't go.



My antivirus doesn't find anything harmful about this file though, but I wanna be sure. Could this innocent-looking text file be part of something harmful and how could I force delete it?
 

My Computer My Computer

At a glance

Win7 Enterprise 64bit
Computer type
PC/Desktop
OS
Win7 Enterprise 64bit
Hi 7o9, welcome to Seven Forums,

Have you looked to see if the file is running in Processes or Services?
What do the file properties of the file say?

I hope this helps!
 

My Computer My Computer

At a glance

Win 7 HP SP1 64-bit Vista HB SP2 32-bit Linux...Intel(R) Pentium(R) CPU P6200 @ 2.13GHz4.00 GBIntel(R) Graphics Media Accelerator HD
Computer type
Laptop
Computer Manufacturer/Model Number
Fujitsu LIFEBOOK
OS
Win 7 HP SP1 64-bit Vista HB SP2 32-bit Linux Mint 18.3
CPU
Intel(R) Pentium(R) CPU P6200 @ 2.13GHz
Motherboard
FUJITSU FJNBB06
Memory
4.00 GB
Graphics Card(s)
Intel(R) Graphics Media Accelerator HD
Sound Card
[1] Realtek High Definition Audio [2] Intel(R) Display Audio
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 59 Hz
Hard Drives
TOSHIBA MK5076GSX
Antivirus
AVG FREE
If it's a temp file, there is no reason to worry, specially about an empty one. Many programs keep creating all sort of temp files, and sometimes they "forget" to delete them. Since the file occupies no space at all, there is no gain from deleting it.

But if you still want to find out, use Process Explorer to look what process has opened it, then you can terminate it and delete.
Note that if the file happens to be necesary for something, it's likely to get recreated shortly afterwards.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64Intel Core i7-740QM8 GB DDR3NVIDIA GeForce 330GT
Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
Back
Top