Discussion Locked

How do I delete a file that is in use?

0 helpful
27 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am having difficulty deleting two word documents. When I try to delete them, I get "Access denied, the files might be in use"

But I am sure that no one has the file open.

The file is sitting on an NT 4.0 server with SP 6a and I have full control of the file and directory

27 replies

by greywolffe

I have run into this several times myself. Here's some steps to hopefully get them disconnected.

1. If you're using an NT server, run the Server Manager tool.

2. Find the server the file is located on and double click it.

3. Click on the button labled IN USE.

4. Try to locate the file name that is in use and click it. Then DISCONNECT the user from the resource.

5. If there are no files in use, I've actually had to go around to the users of the server and had to reboot each machine to ensure their connections were cleared. A long around approach but the most successful sometimes.

Hope this helps.

Joe

by don christner

Check the file attributes to make sure that that isn't stopping you. Then get into the properties of the file and take ownership, you should then be able to delete it.

Don

by warren.ali

I have already done that. That was one of the first things I did. That's why this problem is so puzzling.

I seem to recall a resource kit tool that did exactly this, but i cant find anything.

by don christner

A utility that I use from my NT workstation is OFL.EXE utility from WWW.MERXSOFT.COM. This program allows me to see who is using what and then boot them off of the file, folder or computer.

Don

by doubledown

Log on locally at the server. take ownership of the files/directory. then try to delete them.

by ray.gala

First of all, I'd propose to launch Anti-Virus software on Maximum level of heuristic detection. Some of computer worms are using random files to hide, and in this case you can't access those files.
d_christner's idea to use OFL utility is good, but again only if your LAN is virus-free.
Also I'd recommend to install and run on the Server some software with Network monitoring(for instance, LAN Guard) so you can fully control your LAN traffic.
Best of luck to you.

by warren.ali

The files are accounted for. They were ftp'd onto the server. 1 file was created and 2 copies made and modified. But somewhere along the line, when a user opens the file it says its read only and no one can delete it

by craig it mangaer

I have ran into this with backup software. What you may need to do is reboot the Server. If there is no one using the file but got kicked out of it abruptly NT will not show that the file is in use but will also not let you delete it.

by astute

Use "winfile" ( got to run & type winfile),

Select the file and then click file -> properties,

Then Click on "Open By " button, Select all the open instances if any and say Close all.

Then u should be able to delete the file.

Hope thishelps.

Thanks
sharan

by warren.ali

There are no locks or users on the file. When i try to delete the file it tell me "Access denied, the source file is in use" and in good 'ol file manager it says "You might not have the needed permission or the file may be in use"

Baffled

by shawnyong

Don't know this works or not.

need to restart the server with the startup disk, using command prompt mode. find the file and DEL it.

This discussion is closed to new replies.