troubleshooting Question

Batch file to copy Access mdb from server share to desktop program files\subfolder

Avatar of lbeham
lbeham asked on
Microsoft DOSMicrosoft AccessWindows Server 2003
12 Comments1 Solution836 ViewsLast Modified:
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.

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 12 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros