Need a batch file to copy a file from a network share based on a list of usernames
Posted on 2011-05-03
Here's the scenario:
I have a list of users in a text file with 5 digit user ID's, for example
On a network share, I have a list of these corresponding users, and they each have a file, with a .ini extension... for example
I need a batch script that can copy down the correct ini file depending on which user is currently logged into the machine. So, if user abc12 logs in, the abc12.ini file gets copied to c:\temp. I plan on putting this script in startup, so the appropriate file gets copied down to the specific user.