Close all network connections to a file.
wntFileClose(server-name, file-pathname)
(s) server-name: "server-name" is the name of a remote server on which the function will execute, or a blank string ("") to indicate the local computer.
(s) file-pathname: "file-pathname" is a fully-qualified file name (eg,"C:\DOC\MYFILE.TXT")NOTE: The file name MUST be fully-qualified.
(i) Returns the number of connections which existed (and were closed) for the specified file.
Note: this function will not work to do a wntFileClose on a local file that was opened by yourself on the local machine, even if it's done over a mapped drive with a UNC.
; Load Appropriate Extender AddExtender('wwwnt34i.dll',0,'wwwnt64i.dll')
; the "C:\DOC\MYFILE.TXT" on the local machine needs to ; be opened by someone Else over the network. wntFileClose("", "C:\DOC\MYFILE.TXT") Exit