Copy files with a login script
Posted on 2004-09-02
There are 3 files that reside at the C:\Documents and Settings\Default User\Application Data\"my application" folder. I need to copy these 3 files from the mentioned location to C:\Documents and Settings\User A\Application Data\"my application folder. The real problem is that I need to do this on about 50 computers and these computers are loged in by several users during the day. Each user needs to have those files in their own profile user a, user b, user c etc.
Does any body know the sintax to accomplish this kind of task using a login script? Ithe problem I have is that I don't know who is going to log in to what computer and to copy manually those files will be a big task.
My idea is, at login to execute something like this copy C:\Documents and Settings\Default User\Application Data\My application\*.* C:\Documents and Settings\variable user\Application Data\my application\ What is the sintax for "variable user so it piks up the user name from the windows 2000 user name that is logged in.
ThanX for any help or ideas.