• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 133
  • Last Modified:

what uses my file?

Ola,

When trying to delte a file I get this msg ( something like it ) "Cant delete file, file in use", even though I am SysAdmin.
How can I tell what process or who is using that file?
0
DaFou
Asked:
DaFou
6 Solutions
 
NetworkArchitekCommented:
0
 
LongbowCommented:
You can use the "net file" command.
"net file id /close" to "close" the file.
"net file /?" for help.
0
 
anil_uCommented:
Try Who Lock Me on
http://www.dr-hoiby.com/tools.php

works quite well and you can kill the process so that you can delete the file.
0
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

 
ADSaundersCommented:
Hi DaFou,
Sysinternals provide several admin tools, the one you want here is handle http://www.sysinternals.com/ntw2k/freeware/handle.shtml

Regards .. Alan
0
 
imnajamCommented:
beside all the tools (that would work for you) you can boot into safe mode and delete the file depending on the file if it's not a critical system file
0
 
DaFouAuthor Commented:
thanks all for the response.

Before i use any programs not readily installed i want to try
the net file method.
Longbow: How do i determine the file id?
0
 
LongbowCommented:
It will be given when you type "net file" on the server.
It is the first column.

Maybe you can filter the output with a pipe :
net file | find /I "file.ext"
0
 
kapesCommented:
net file will be helpful only if its opened over network...

otherwise...

you have to use.. Handle or Process Explorer from Sysinternals.com

Also...

Many times oddly... Ii have found that ... deleting from Command Prompt ... works....
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now