TechSupp Posted May 15, 2009 Posted May 15, 2009 Whats the best way of has anyone got a script that I can run at logon to copy a folder from the server to the PC's but check to see if it exists first so it does not try to copy it every time it logs on.
IrritableTech Posted May 15, 2009 Posted May 15, 2009 Robocopy... It will only overwrite if the source file is newer than the destination file... Its available in the w2003 resource kit: Download details: Windows Server 2003 Resource Kit Tools Handy GUI: Utility Spotlight: Robocopy GUI More info & switches: [ame=http://en.wikipedia.org/wiki/Robocopy]robocopy - Wikipedia, the free encyclopedia[/ame]
maniac Posted May 15, 2009 Posted May 15, 2009 This little VBS script will do it. I use it for one off distribution of files sometimes. dim filesys set filesys=CreateObject("Scripting.FileSystemObject") If (FileSys.FolderExists("c:\DESTINATIONFOLDER")) Then WScript.Quit filesys.CopyFolder "\\SERVER\SHARE\FOLDER", "c:\DESTINATIONFOLDER" Mike.
kennysarmy Posted May 15, 2009 Posted May 15, 2009 if it's only a few files this might do it... rem copies files for Multimedia Sound to work if not exist "c:\windows\CSMSOUND.INI" copy "\\fp4\shapps\MultimediaSound\windows\CSMSOUND.INI" c:\windows\ if not exist "c:\windows\system\CSMSND.DLL" copy "\\fp4\shapps\MultimediaSound\windows\system\CSMSND.DLL" c:\windows\system if not exist "c:\windows\system\MCI.VBX" copy "\\fp4\shapps\MultimediaSound\windows\system\MCI.VBX" c:\windows\system
TechSupp Posted May 15, 2009 Author Posted May 15, 2009 This little VBS script will do it. I use it for one off distribution of files sometimes. dim filesys set filesys=CreateObject("Scripting.FileSystemObject") If (FileSys.FolderExists("c:\DESTINATIONFOLDER")) Then WScript.Quit filesys.CopyFolder "\\SERVER\SHARE\FOLDER", "c:\DESTINATIONFOLDER" Mike. That should do it, its for some software that won't run correctly (due to permissions etc) from a share over the network (and is very slow when a full class wants to use it) so tried it locally and its fine so just need to copy the folder locally and then put the icon on the global desktop. Speaking of icon and desktop how would I copy a shortcut to the all users desktop if I needed to as staff don't get the global desktop.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now