Avatar of cjones3rd
cjones3rd asked on

Copying direcoties into user directories

I need a script that will copy a directory and it's sub-directory into the home directory of hundreds of users.  For example, the script needs to copy the directories WORK\FAV into the g:\AJones, g:\BPeters, and g:\CSmith directories, and finish up with g:\ZWilliams at the end.  Preferably, I won't have to type every username into the script.

I realize this would be an easy task if each user ran an XCOPY during the login script but that's not an option at the moment.  Is there another way to do this?
Microsoft DOSMicrosoft Legacy OSIT Administration

Avatar of undefined
Last Comment

8/22/2022 - Mon
Bill Prew

So, can you do this on the g: server, or a system that has access to it?  And if so, is it okay to copy the folders into every top level folder on g:?

Where is work\fav located?


Yes.  I can run the script (DOS batch file) on the server and it is ok to copy work\fav into every top level folder under g:.  They are all user home directories.  

The work\fav directories are located in:  \\svr1\users\Admin\CourtForms
Bill Prew

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

Thank you!  I will test and let you know
Your help has saved me hundreds of hours of internet surfing.