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: The process cannot access the file because it is being used by...


03 May 2012   #1

Windows 7 Ultimate x64
 
 
The process cannot access the file because it is being used by...

Hi Forums,

I am getting this error all the time with Windows 7. I open a text file I want to
edit, then go to save my changes and I get this error:

"The process cannot access the file because it is being used by another process".


I have full admin rights, running Windows 7 Ultimate x64 SP1. From a bit of research I have seen where many others have been experiencing this problem or something similar too. The only "fix" (that doesn't work all the time) is to close explorer.exe and then restart it to "release the handle"? Anyway, this is not acceptable for to money and time I spent upgrading/configuring this new OS from XP where I never had this problem and seriously cuts down my productivity.

Is there a fix for this? Has Microsoft even acknowledged this as a bug yet? I can duplicate this scenario the second or third time I try to edit/save/delete a text file and I know that explorer.exe is the problem or a big part of it in any case. I don't want to go back to XP x64 but having to deal with this headache 10-20 times a day is just too much to ask.

Thanks!

My System SpecsSystem Spec
.

04 May 2012   #2

Windows 7 Home Premium 64 Bit
 
 

Have you checked to see if another application or service is causing this behavior? Troubleshoot Application Conflicts by Performing a Clean Startup
My System SpecsSystem Spec
04 May 2012   #3

Microsoft Community Contributor Award Recipient

Windows 8.1 Pro with Media Center
 
 

Seems bad coding for me.

It is only natural and logical that you can't edit a file that is currently used by system or a process, so right address for complaint's is the coder for that application or process that keeps your file open even when it is no longer needed.
My System SpecsSystem Spec
.


04 May 2012   #4

Windows 7 Ultimate x64
 
 

Nothing else is running the text file but notepad. And I used unlocker to check the handles. It's explorer.exe that locks it.

Found this in MS forums: The action can't be completed because the file is open in Windows - Microsoft Answers

Seems to be an issue long standing and a bug inherent with Windows 7.

There has been no "official" statement from MS acknowledging this bug hence a patch or fix release is unlikely. Some users in the thread above have offered "fixes" but they are way too time consuming and inefficient in regards to workflow productivity. This shouldn't be an issue one has to deal with when purchasing a new OS that's supposed to be a pinnacle achievement in technology in the first place. How could MS leave such a glaring bug with their poster-child OS? Total bs. Might just have to dual boot into XP when I'm scripting from now on.
My System SpecsSystem Spec
04 May 2012   #5

Windows 8.1 Pro RTM x64
 
 

Does it happen with any text file you want to edit, or just this one in particular?
My System SpecsSystem Spec
04 May 2012   #6

Windows 7 Ultimate x64
 
 

It occurs with any file I try to edit with notepad or notepad++.
My System SpecsSystem Spec
04 May 2012   #7

Windows 7 Pro-x64
 
 

What real time AV are you using. Perhaps it's locking on read and write or script checking. Or you have two running and they're butting heads.
My System SpecsSystem Spec
04 May 2012   #8

Windows 7 Home Premium 64 Bit
 
 

Quote   Quote: Originally Posted by 1000faces View Post
It occurs with any file I try to edit with notepad or notepad++.
That is abnormal behavior. Have you tried the clean startup to see if another application or service is conflicting with explorer.exe and causing it to access files?

Also, what antivirus software do you use? Some of the more aggressive antivirus software will scan files when they are accessed, and it may show up as an explorer.exe access when it is actually the antivirus software.


Edit: carwiz: Great minds think alike...
My System SpecsSystem Spec
04 May 2012   #9

Windows 8.1 Pro RTM x64
 
 

Does it happen if you create a simple text file, close it, and then try to edit it again? As stated above, this is abnormal behaviour. With some programs, it is understandable if all associated files aren't properly released when the program is closed (although this would be an issue for the program manufacturer to address). It could be your AV locking the file for some reason or other, but again this is not normal. I certainly haven't come across it.

See if this picks anything up: SFC /SCANNOW : Run in Command Prompt at Boot
My System SpecsSystem Spec
04 May 2012   #10

Windows 7 Pro-x64
 
 

Quote   Quote: Originally Posted by writhziden View Post
Quote   Quote: Originally Posted by 1000faces View Post
It occurs with any file I try to edit with notepad or notepad++.
That is abnormal behavior. Have you tried the clean startup to see if another application or service is conflicting with explorer.exe and causing it to access files?

Also, what antivirus software do you use? Some of the more aggressive antivirus software will scan files when they are accessed, and it may show up as an explorer.exe access when it is actually the antivirus software.


Edit: carwiz: Great minds think alike...
Mike - Hehehe.... Mine was just a shot in the dark. I know it's not Windows or Notepad--They just do what they're told. I'm an edit fool and never run into this.
Ken
My System SpecsSystem Spec
Reply

 The process cannot access the file because it is being used by...




Thread Tools



Similar help and support threads for2: The process cannot access the file because it is being used by...
Thread Forum
Create Dump File - Does It End Process As Well? BSOD Help and Support
File Sharing Process - Win7 and Snow Leopard Network & Sharing
Is it possible to block network access by PID instead of process name? Network & Sharing
Using bat file to tweak process priority. Performance & Maintenance
Kill An Application But Not Process, From Batch File General Discussion
Every process has access to free, silent elevation! Proof of concept video News

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 09:24 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33