TheNovice001
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.
The program will run from the source computer.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
your welcome ;)
thanks for the refunds
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
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("A llUsersDes ktop")
You can also try to resolve environmental variables like %ALLUSERSPROFILE%, %USERPROFILE% or %APPDATA%
e.g.
strAllUsersProfile = WshShell.ExpandEnvironment Strings("A LLUSERSPRO FILE")
It's important that this script will be executed with local Administrator permissons to copy into default or allusers profile
http://msdn.microsoft.com/en-us/library/0ea7b5xe(VS.85).aspx
e.g.
strAllUsersDesktop = WshShell.SpecialFolders("A
You can also try to resolve environmental variables like %ALLUSERSPROFILE%, %USERPROFILE% or %APPDATA%
e.g.
strAllUsersProfile = WshShell.ExpandEnvironment
It's important that this script will be executed with local Administrator permissons to copy into default or allusers profile
ASKER