We have a file that is linked to from our intranet. The file is a PDF file that a process recreates with the same name every several hours. The problem is, if a user is viewing that file (or has just left it open), the process cannot update the file because it is locked. An admin has to go into the server and through Computer Management -> System Tools ->Shared Folders -> Open Files -> Close open file.
Since this happens several times a day, I'd like to give the user a script or similar to run (or add to the beginning of his process) to force closed the file before updating. The user has full rights to the share and NTFS folder where the PDF file gets created.
Any help would be great. Thanks.