Score:0

Find (apparently) open files from disconnect network share?

ca flag

Trying to disconnect a mapped network drive, I get the below error:

network locations

Error:

You currently have files open on X: (connected to \x.x.x.x\Share). If you don't close the files before disconnecting from the network device, you might lose data. Do you want to disconnect?

Error: You currently have files open on X: (connected to \x.x.x.x\share). If you don't close the files before disconnecting from the network device, you might lose data. Do you want to disconnect?

I've checked the "Open Files" section in computer management and it's blank, but the issue persists. I've closed most programs, checked that I've closed any files that are located on this share, I've restarted explorer.exe.

enter image description here

This share contains essential work and if I've really got files open on this, then I need to know. But how can I find out? Is there a powershell / command prompt function that can list any open files by location?

Running Win 10 ver 21H1

Any help appreciated, many thanks.

Jevgenij Martynenko avatar
us flag
Just checking: did you check the "Open Files" section in computer management at remote machine (192.168. 3.7)? Or local machine? Or is it your local machine which holds the share?
5Diraptor avatar
ca flag
The network drive is a server share. I was trying to disconnect the drive from my local pc, and so I checked the "open files" section on my local pc.
joeqwerty avatar
cv flag
Just click the Yes button.
Score:1
us flag

Two options for you:

  • On client: download Process Explorer, run it and press Ctrl + F to look for handle X:. This will show you which file is used by which process
  • On server: check "Open files" in the Computer Management. It will show files locked by your user account
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.