Link to home
Start Free TrialLog in
Avatar of TheNovice001
TheNovice001Flag for United States of America

asked on

Simple Script to Copy Files to Multiple Computers.

I'm looking for an easy to use script that will copy files from one computer (c:\source files\) to a specific folder (\\computername\ c:\programs files\destination\) of multiple computers. If it can create a log file that shows which copies were successful or failed that would be great!

The program will run from the source computer.
ASKER CERTIFIED SOLUTION
Avatar of merowinger
merowinger
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TheNovice001

ASKER

I didn't think anyone would get back to me until later this morning.  I mean afterall my question was asked at 2:00 AM.  This is an outstanding service! Thank you very much for your prompt reply to my question!
your welcome ;)
thanks for the refunds
I am trying to get this script to copy files or a folder to every existing user's profile "Application Data" folder, but am not having any luck.  I can get it to copy anywhere but.  I'd like to get it to copy to default users and all users also.  What string or wildcard command would be needed for this?

Thanks
I think best way is to use VBScript Special folders in this case
http://msdn.microsoft.com/en-us/library/0ea7b5xe(VS.85).aspx

e.g.
strAllUsersDesktop = WshShell.SpecialFolders("AllUsersDesktop")

You can also try to resolve environmental variables like %ALLUSERSPROFILE%,  %USERPROFILE% or %APPDATA%

e.g.
strAllUsersProfile = WshShell.ExpandEnvironmentStrings("ALLUSERSPROFILE")


It's important that this script will be executed with local Administrator permissons to copy into default or allusers profile