Post
by mikeyww » 07 Jun 2023, 06:11
With 356 posts, you are a pro. The script displays the computer name because it displays file names, and line 5 of the script defines the file name to be the computer name. Feel free to change it. The extension will be whatever you indicate it to be, on that line. The computer name itself is a text word that typically has no extension. The script currently uses this.
All of the scripts would need to use a shared directory that is accessible to all of them. You can modify the access rights, or use a different directory that is accessible to all. You can use a NAS, a drive that is already mapped, etc. You can discover that by accessing the directory from the computers. If you are trying to access a directory, Web site, server, etc. that generally requires a separate password or other authorization to access it, then the script will likely not have access to it unless you adjust the script or that resource accordingly. I have a LAN with two computers using a common drive that is shared via a standard Windows drive mapping. Scripts on additional computers using the same drive would also work.
If you have difficulty with the file modification times, you can add a tolerance time (e.g., 2 seconds) to the DateDiff, but I think that this is unlikely to be a problem for LAN computers that synchronize their times with a time server.