Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Who Opened This File? 1

Status
Not open for further replies.

WayneRyan

Programmer
May 23, 2002
202
US
On a Windows 2000 Server, there is a file opened. The file is located in
"C:\Temp\SomeFile.txt"

This file can't be deleted, renamed, etc. - because it is "in use".

The app that created the file is probably running (which one) and if the
server is rebooted, the file can probably be deleted.

Any thoughts on how to find the process that opened it?

Or how to Delete it with the parent process still running?

Thanks,
Wayne
 
Try Start>Programs>Administrative Tools>Computer Management>Shared Folders>Open Files> then Right click on the file and choose close file.

Alternatively there is an app floating around somewhere I used a few years back called WHOHASIT? I dont know if this can be downloaded from somewhere?

Hope this helps
 
So you have an exclusive r/w lock on a file that precludes it's closing and termination because windows knows better than you when it's good to delete a file.That is pretty special.
I would use an interpreter that knows nothing about
windows file locks and IPC that simply unlinks that
bad boy and then you have zero problems again.
Try tcl or perl or ansi C.
 
ouzojd,

Thanks for the WHOHASIT tip. It is still available.
The file was created by a process on the server and
doesn't show up on the shared files list.

Will convince the Server manager to give it a try.

Thanks again!
Wayne
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top