Jump to content

Recommended Posts

Posted

A teacher wishes to add a file or files to all pupils' work folders. Is there an easy way to do this? I have heard Robocopy can do so but can't quite work out the syntax for this sort of job. The location of individual folders is \\server\home\students\username\My Documents. Some of the folders appear to replace "username" with My Documents but I imagine a wildcard for that part of the pathway, if possible,would get around that.

Regards,

Paul - ICT Technician - Bracknell Forest

Posted (edited)

robocopy "\\server\folder-where-file(s)-live\" "\\server\home\username\My Documents" filename.fileextension filename.fileextension

 

There's a myriad of parameters to go along with Robocopy if you need them, you can view them by typing robocopy /? in command prompt, though what I've put will work as a basic copy and paste.

 

Shouldn't matter about 'username' being replaced by 'My Documents', you can still access the folder by using their username, I believe it's a result of junction points? Not sure.

Edited by JackCPickup
Posted
Why not just put the file/files in a shared area and let them access it that way? You don't need to have multiple copies of the same file in each user area. If they are going to modify the file and then save it they can always save it to their home area if need be.
Posted

I reckon it could be pretty easy to set up a script to read the next folder name in the home folder, and set that as a variable in "\\server\home\%variable\My Documents" to then use in a robocopy batch file...but I've not the time right now to do that.

 

Plus the 'username' being replaced by 'My Documents' would probably be a problem there.

Posted
cant you use gpp and just set i t to create a file in users documents granted it wont do it till they logon but they dont need it till then just set the option to create so it dosent update it or failing that a logon script so copy \\server\share\word.doc u:\documents\word.doc again dosent run till they login but works and is really simple

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...