Remind me which functions to use to do this.
I have a WB script that opens a log file periodically to append info. Normally, it works fine, but it failed today (with error 32) because I had accessed the file from another machine (via Windows Networking). The other machine had long since closed the file, of course, but Windows Networking keeps it open long after the other machine has closed out of the app.
I can fix the problem by going into compmgmt.msc and closing the open file. But I would like to do that programmatically - when the open fails, I'd like to invoke whatever's necessary to close the file. I could, of course, do it by automating the compmgmt.msc GUI, but it'd be better to do it with the Network Extender.