I would like to create a batch file to copy a file from the MS Server 2003 share to a group of users(distribution user group) on their desktop folder c:program files\Access subfolder (location of mdb file. I would like to write out a log file (can be a text file of when the copy took place for each of the users) with a time and date stamp. What is the best syntax for this batch file? Is it best to use robocopy or just copy? I would also like to check if the user has the file in the proper folder and if not then record yes or no in the log file.
Here is what I have so far.
IF EXIST C:\program files\directory\file.mdb roboCOPY s:\directory long name\subdirectory long file name\filename.mdb /copy:DAT
The plan is to put this batch file in the login script to kick off for a user if they are in the application user group.