+ Post New Thread
Results 1 to 5 of 5
Windows Thread, Best Way to copy folder to PC's in Technical; Whats the best way of has anyone got a script that I can run at logon to copy a folder ...
  1. #1
    TechSupp's Avatar
    Join Date
    Mar 2007
    Location
    South Yorkshire
    Posts
    1,927
    Thank Post
    318
    Thanked 122 Times in 103 Posts
    Rep Power
    42

    Best Way to copy folder to PC's

    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.

  2. #2
    IrritableTech's Avatar
    Join Date
    Nov 2007
    Location
    West Yorkshire
    Posts
    849
    Thank Post
    99
    Thanked 196 Times in 160 Posts
    Rep Power
    69
    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]

  3. #3

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,070
    Thank Post
    210
    Thanked 430 Times in 310 Posts
    Rep Power
    144
    This little VBS script will do it. I use it for one off distribution of files sometimes.

    Code:
    dim filesys
    set filesys=CreateObject("Scripting.FileSystemObject")
    
    If (FileSys.FolderExists("c:\DESTINATIONFOLDER")) Then WScript.Quit 
    
    filesys.CopyFolder "\\SERVER\SHARE\FOLDER", "c:\DESTINATIONFOLDER"
    Mike.

  4. #4
    kennysarmy's Avatar
    Join Date
    Oct 2005
    Location
    UK
    Posts
    1,319
    Thank Post
    83
    Thanked 47 Times in 33 Posts
    Rep Power
    31
    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\CSMSN D.DLL" c:\windows\system
    if not exist "c:\windows\system\MCI.VBX" copy "\\fp4\shapps\MultimediaSound\windows\system\MCI.V BX" c:\windows\system

  5. #5
    TechSupp's Avatar
    Join Date
    Mar 2007
    Location
    South Yorkshire
    Posts
    1,927
    Thank Post
    318
    Thanked 122 Times in 103 Posts
    Rep Power
    42
    Quote Originally Posted by maniac View Post
    This little VBS script will do it. I use it for one off distribution of files sometimes.

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

SHARE:
+ Post New Thread

Similar Threads

  1. Move Folder from PC's to Server
    By linkazoid in forum Scripts
    Replies: 3
    Last Post: 13th May 2009, 09:23 AM
  2. vbscript to copy a folder & delete a folder
    By MicrodigitUK in forum Scripts
    Replies: 2
    Last Post: 29th January 2009, 12:43 PM
  3. need a script to copy a folder with shortcuts
    By jamin100 in forum Scripts
    Replies: 1
    Last Post: 4th September 2008, 07:38 PM
  4. how to copy folder using putty
    By ranj in forum *nix
    Replies: 2
    Last Post: 26th June 2008, 05:46 PM
  5. VBS Script to copy a folder
    By FN-GM in forum Scripts
    Replies: 2
    Last Post: 23rd February 2008, 01:08 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •