Jump to content

Recommended Posts

Posted

Hi,

 

I'm wondering if anyone has an easy way of moving a single file into multiple users personal drives?

 

I don't do it very often at all and I'm having a blank moment as to where to start.

 

Cheers

Posted

I do a user dump from AD then make a spreadsheet using concanate then copy it in to a batch file so it looks like this:

 

copy c:\year2photos\*.* "Y:\13AA\Documents\My PICTURES"

copy c:\year2photos\*.* "Y:\13AA\Documents\My PICTURES"

copy c:\year2photos\*.* "Y:\13AC\Documents\My PICTURES"

copy c:\year2photos\*.* "Y:\13AG\Documents\My PICTURES"

copy c:\year2photos\*.* "Y:\13AH\Documents\My PICTURES"

copy c:\year2photos\*.* "Y:\13AK\Documents\My PICTURES"

 

There are much easier ways to do it but i'm not a scripting guru

Posted
I do a user dump from AD then make a spreadsheet using concanate then copy it in to a batch file so it looks like this:

 

copy c:\year2photos\*.* "Y:\13AA\Documents\My PICTURES"

copy c:\year2photos\*.* "Y:\13AA\Documents\My PICTURES"

copy c:\year2photos\*.* "Y:\13AC\Documents\My PICTURES"

copy c:\year2photos\*.* "Y:\13AG\Documents\My PICTURES"

copy c:\year2photos\*.* "Y:\13AH\Documents\My PICTURES"

copy c:\year2photos\*.* "Y:\13AK\Documents\My PICTURES"

 

There are much easier ways to do it but i'm not a scripting guru

 

Ditto.

 

Concat.png

 

Don't forget double "" if you need to include a " inside the command.

 

concatenate takes as many parts as you want.

 

=concatenate("Hi ",a1,"please can","you report to room",b1,"at the following time",c1)

 

would produce "Hi Peterplease canyou report to roomS5at the following time10.30"

 

Very powerful command.

 

As mowgli says, copy the resulting column B into notepad, save as a .bat file, and hey presto.

Posted
How bouts trying Group Policy Preferences. I've used it to create folders before now.

 

GPP is the best way, plus it means that if the files are deleted (due to rebuild or something) then they'll be recreated on next boot.

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...