Cannot delete file

J

John Pressman

When trying to delete a file, I get "Error Deleting File or Folder Cannot delete DBDesigner 4.0.4.9: It is being used by another person or program. Close any programs that might be using the file and try again."
XP Home, using administrator account. I've tried shutting down and turning on again in safe mode. Why is this happening?
 
P

purplehaz

I've found that sometimes simply copying the file to another folder will
then let you delete the original and the copy. If that doesn't work try
below:



http://www.kellys-korner-xp.com/xp_d.htm#del



Delete - AVI, MPG... files (access denied error)

Close all open apps. Open a command prompt (start, run, cmd, hit enter) and
navigate to the directory with the offending files. Then open the Task
Manager and click on the Processes tab. select "Explorer.Exe" under Image
Name. Click "End Process".



Now you will only have the command prompt and the task manager. In the
Command Prompt, DEL the offending files (DEL *.mpg, DEL mus*.avi, DEL
test.wmv, etc.)



The files should now delete without a problem. Now go back to the task
manager and click on the Applications tab. Click the "New Task..." button.
in the dialog, type Explorer.Exe and click OK.
 
P

Parish

John said:
When trying to delete a file, I get "Error Deleting File or Folder
Cannot delete DBDesigner 4.0.4.9: It is being used by another person
or program. Close any programs that might be using the file and try
again." XP Home, using administrator account. I've tried shutting
down and turning on again in safe mode. Why is this happening?


I take it that you mean that you get the same error after re-booting
into Safe Mode (you didn't actually say)?

DBDesigner is a front-end to MySQL, yes? MySQL runs a server service so
it could be that this service is using the file.

Control Panel->Administrative Tools->Services and look for MySQL. If
it's running, stop the service and try deleting the file (of course the
service may not start again ;-) ). It may be that DBDesigner itself runs
a service or runs in the background from Startup or one of the Run keys
in the registry.

On a more general note about this error it can happen when the program
that uses the file has been closed, but hasn't terminated cleanly and is
hanging around as a zombie process; it doesn't appear on the desktop,
and if you open Task Manager it doesn't appear in Applications, but it
*does* appear in Processes. If that is the case then select it and click
End Process. Having said that, it won't persist across a reboot.

A more frequent reason (IME) is that Explorer itself is "using" the
file. Using Process Explorer from Sysinternals,
<http://www.sysinternals.com/ntw2k/freeware/procexp.shtml> and searching
for the file handle it shows explorer.exe as the culprit. Close Explorer
and the file is released (according to PE) however, if you start
Explorer again, it re-locks the file. If you kill the Explorer.exe
process it will release the file permanently but it also restarts the
desktop (the Explorer shell). Generally this isn't s problem but some
icons may not re-appear in the system tray (even though the programs
that own them are still running). A better solution is to close Explorer
(to release the file) and then delete the file/directory from a DOS box.
 
G

Gerry Cornell

John

Why are you deleting a file. Have you tried uninstalling or is this a relic remaining after uninstalling?

--

~~~~~~


Hope this helps.

Gerry
~~~~~~~~~~~~~~~~~~~~~~~~
FCA
(e-mail address removed)
Stourport, Worcs, England
Enquire, plan and execute.
~~~~~~~~~~~~~~~~~~~~~~~~
Please tell the newsgroup how any
suggested solution worked for you.

~~~~~~~~~~~~~~~~~~~~~~~~
 
J

John Pressman

John Pressman wrote:

# When trying to delete a file, I get "Error Deleting File or Folder Cannot delete DBDesigner 4.0.4.9: It is being used by another person or program. Close any programs that might be using the file and try again."
# XP Home, using administrator account. I've tried shutting down and turning on again in safe mode. Why is this happening?

Thanks for all the replies. I deleted it from the command prompt after restarting (it was the attempt to delete it from explorer which "locked" it).
 
G

Guest

-----Original Message-----
I've found that sometimes simply copying the file to another folder will
then let you delete the original and the copy. If that doesn't work try
below:



http://www.kellys-korner-xp.com/xp_d.htm#del



Delete - AVI, MPG... files (access denied error)

Close all open apps. Open a command prompt (start, run, cmd, hit enter) and
navigate to the directory with the offending files. Then open the Task
Manager and click on the Processes tab.
select "Explorer.Exe" under Image
 
G

Guest

-----Original Message-----
I've found that sometimes simply copying the file to another folder will
then let you delete the original and the copy. If that doesn't work try
below:



http://www.kellys-korner-xp.com/xp_d.htm#del



Delete - AVI, MPG... files (access denied error)

Close all open apps. Open a command prompt (start, run, cmd, hit enter) and
navigate to the directory with the offending files. Then open the Task
Manager and click on the Processes tab.
select "Explorer.Exe" under Image
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top