(5, 'MoveFileEx', 'Access is denied.')

Hello
I keep getting: (5, 'MoveFileEx', 'Access is denied.')
I have full Admin rights, this error message (159 times) only started appearing after Bleachbit last upgraded.
Any ideas as to why?
Thanks, Lief

Forums: 

I guess you are using BleachBit version 0.8.2 now. This sounds similar to the known issue [Errno 21] Is a directory" , so try one of these solutions

1. Downgrade to 0.8.1
2. In the preferences disable overwrite
3. Wait for BleachBit 0.8.3 (beta coming soon).

To be notified of a new release, subscribe to RSS or Twitter using the orange and blue icons on the right navigation bar.

While running BleachBit from a .bat file, I receive this error:

Traceback (most recent call last):
File "bleachbit\Worker.pyo", line 88, in execute
File "bleachbit\Command.pyo", line 86, in execute
File "bleachbit\Windows.pyo", line 126, in delete_locked_file
error: (5, 'MoveFileEx', 'Access is denied.')

I went through the rest of this post and disabled all security programs and verified

win32com.shell.shell.IsUserAnAdmin() = True

I'm currently using BleachBit 0.9.3.

Any idea what could be the cause of this? Thank you in advance!!

Hello,

I have the same issue with the version 0.8.7 on a WIndows 7 64bits installation.
How to solve this ?

Thanks

Questions for you:
1. On which files (or with which options) do you get this error? If you are not sure, disable one option at a time until the error disappears, and the last option is the one that triggers the error.
2. Which antivirus/security software do you use?
3. Try putting the security software in disabled or game mode
4. Click Help - System Information, and verify win32com.shell.shell.IsUserAnAdmin() = True

1° On these files :

- ...AppData\Local\Microsoft\Windows\History\Low\History.IE5\desktop.ini
- ...AppData\Local\Microsoft\Windows\History\History.IE5\MSHist012011031020110311\index.dat
- ...AppData\Local\Microsoft\Internet Explorer\Recovery\Active\{23D7A8D3-4BDC-11E0-80C4-005056C00008}.dat
2° Mc Afee
3°SAme issue when I disable the A/V
4° The value is "False"

Thanks

#4 indicates you are not running as an administrator which is required, at this time, to schedule to delete in-use files (mainly affecting internet Explorer, as shown).

Two more questions
5. When BleachBit starts, do you see a dialog from Windows called "User Access Control" with the question "Do you want to allow..."?
6. Do you answer "yes"?
7. Did you install BleachBit, or is it portable?

5° No dialog box is displayed to ask me to grant admin access
7° I installed Bleachbit

I've just started getting MoveFileEx errors too. Not sure what BB's trying to tell me.

Traceback (most recent call last):
File "bleachbit\Worker.pyo", line 88, in execute
File "bleachbit\Command.pyo", line 87, in execute
File "bleachbit\Windows.pyo", line 127, in delete_locked_file
error: (5, 'MoveFileEx', 'Access is denied

sysinfo says I'm admin. I'm running Norton. It was recently updated. Not sure if that's when the errors started. Same error when I disable AV and scan.

Re: Andrew's reply:
"4. Click Help - System Information, and verify win32com.shell.shell.IsUserAnAdmin() = True"

Submitted by andrew on Fri, 03/11/2011 - 09:21.

"#4 indicates you are not running as an administrator which is required, at this time, to schedule to delete in-use files (mainly affecting internet Explorer, as shown)."

The problem I see, is if you're running in admin acct, BB only scans / finds files to del in that acct - not a user acct (or all, as CCleaner does) . So, that would mean BB would never be able to del the files mentioned (or similar) that exist in a limited user acct. I don't see that BB has ability to scan another user's acct, while running BB in an admin acct??

I can understand having to run BB in admin acct to make changes to registry, but why would an admin be prevented from del temporary files from users' accts - esp if those accts aren't PW protected, or the admin has the PWs?

brittney24

The problem I see, is if you're running in admin acct, BB only scans / finds files to del in that acct - not a user acct (or all, as CCleaner does) . So, that would mean BB would never be able to del the files mentioned (or similar) that exist in a limited user acct.

In Windows Vista and Windows 7, the UAC dialog elevates the application to administrator privileges within the same user account, so it cleans the same user account. Most home Windows systems use only one account, which has administrator privileges, but Windows doesn't grant them to an application explicitly unless allowed by the user. This prevents the spread of viruses.

BleachBit can clean most files in a limited user account (with administrator privileges): one exception is the index.dat files used by Internet Explorer.

As far as I can tell, CCleaner 3 and BleachBit 0.8.7 (at least, on Windows) behave the same way: to clean an account, you must be logged into it.

why would an admin be prevented from del temporary files from users' accts

The files mentioned are locked by the Internet Explorer process.

Thanks for reply.

1st, like to ask if BB (later vers - I'm using 0.8.7) creates a meaningful log for the errors after running a cleaning job. Some of the errors (like one mentioned by OP) don't show up in any log file (I've found) as associated w/ specific files / folders it couldn't erase, or other errors. There is a "bleachbit.exe.log" file created in the program files install folder, but it doesn't list file / paths that couldn't be erased. Limited info in it.

BleachBit can clean most files in a limited user account (with administrator privileges)

I'm a bit confused. For me, if I run BB w/ admin privileges, it does NOT find / list files from other user accts.

If you run BB in limited user acct, then it doesn't have admin privileges. Can you explain what you meant?

AFAICT, if run CCleaner 3x in a user acct, it will find certain, but not all, temp files, etc., from (my) main admin acct and user acct.
It will find index.dat files assoc. w/ the limited user acct & delete them. I confirmed that on one index.dat file CC 3.06 found in a limited user acct, that actually had data in it (I checked). It was able to del that file w/o a reboot. CCleaner -as w/ many cleaner prgms - used to have to del files like index.dat on reboot. Apparently for some prgms, not the case anymore.

If I run CC in admin mode, it finds temp & other files from all user accts - not just the admin. Whether that's good or bad, not sure. For me, it's not a problem.

Most home Windows systems use only one account, which has administrator privileges

You may be right about one acct, but users are taking more security risks by doing so. I understood your words, but not sure I got the point. BleachBit isn't developed in part to accommodate poor user security practices, is it?

1st, like to ask if BB (later vers - I'm using 0.8.7) creates a meaningful log for the errors after running a cleaning job. Some of the errors (like one mentioned by OP) don't show up in any log file (I've found) as associated w/ specific files / folders it couldn't erase, or other errors. There is a "bleachbit.exe.log" file created in the program files install folder, but it doesn't list file / paths that couldn't be erased. Limited info in it.

BleachBit 0.8.7 has two logs. One is shown in the window, and another is the bleachbit.exe.log which only is created in case of a run-time exception (a rare kind of error). While the error logging is on my top 10 list of things to improve, I think you should be seeing the specific files that are causing the MoveFIleEx error. For example, the 3/11/2/2011 note includes specific file names.

I'm a bit confused. For me, if I run BB w/ admin privileges, it does NOT find / list files from other user accts.

Yes, just like CCleaner. Both clean the account that is logged in.

If you run BB in limited user acct, then it doesn't have admin privileges. Can you explain what you meant?

Sorry, "with administrative privileges" should have been "without." That is, if your account doesn't have administrative rights or if you deny BleachBit the right to use them, then most every file can still be cleaned. This is especially under the user profile directory (which excludes some general Windows logs).

It will find index.dat files assoc. w/ the limited user acct & delete them. I confirmed that on one index.dat file CC 3.06 found in a limited user acct, that actually had data in it (I checked). It was able to del that file w/o a reboot.

That is a new feature for CCleaner. Before CCleaner announced this feature (not that it is necessarily a contest), I experimented with implementing it by killing the processes that lock the file (Windows Explorer and others), but apparently Piriform found a better way.

You may be right about one acct, but users are taking more security risks by doing so.

That is what the UAC in Windows Vista was designed to address.

BleachBit isn't developed in part to accommodate poor user security practices, is it?

I'm not sure if this is what you mean, but it would be a stretch to say BleachBit encourages Windows users to have a single user account (which is arguably less secure). It's standard for many Windows applications to focus on the user profile at hand. If I had more time, I would probably like to clean all the user profiles at once, but it's not a common need and there is an easy workaround.