Question: is there a way to close/disconnect open files on server in VBscript?
I can see which files are open by parsing through as shown below, but is there a way to close the files using the information retrieved here?
Code:
Set obj = GetObject("WinNT://domain/server/LanmanServer")
for each objOpenFile in obj.Resources
...
next
I've seen one method which makes a call to the XP tool OPENFILES (openfiles /disconnect /s server /ID fileid), but is there really no way to do this natively within VBscript?