Trying to disconnect a mapped network drive, I get the below error:
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.
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.
Two options for you:
X:
. This will show you which file is used by which process