+ Post New Thread
Results 1 to 3 of 3
How do you do....it? Thread, Copy files to HDD if they don't exist in Technical; Hi there, Using Win Svr 2008 and XP Sp3 clients can someone please provide me with an example script I ...
  1. #1
    bodminman's Avatar
    Join Date
    Apr 2007
    Location
    Sunny Suffolk
    Posts
    1,150
    Thank Post
    722
    Thanked 222 Times in 114 Posts
    Rep Power
    84

    Copy files to HDD if they don't exist

    Hi there,

    Using Win Svr 2008 and XP Sp3 clients can someone please provide me with an example script I could use via GPO of how to copy some files from the server to the XP client if they don't currently exist on the target machine.

    Cheers

  2. #2


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,210
    Thank Post
    218
    Thanked 812 Times in 694 Posts
    Rep Power
    274
    if not exist c:\somefile.exe copy \\server\share$\somefile.exe c:\somefile.exe /y

    should work

  3. #3

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    10,692
    Thank Post
    824
    Thanked 2,570 Times in 2,187 Posts
    Blog Entries
    9
    Rep Power
    731
    I'd use xcopy, much more robust for network operations. If you are running Vista/7 you could even use robocopy as it is built in but that may be overkill.

SHARE:
+ Post New Thread

Similar Threads

  1. Copy file to Homeshare for certain OU's
    By siuko in forum Wireless Networks
    Replies: 7
    Last Post: 6th July 2010, 11:54 AM
  2. Copy File to folder by date
    By grnslv in forum Scripts
    Replies: 7
    Last Post: 16th June 2010, 08:01 AM
  3. Copy files to another location
    By Chuckster in forum How do you do....it?
    Replies: 7
    Last Post: 23rd October 2009, 02:09 PM
  4. Replies: 19
    Last Post: 20th June 2006, 03:53 PM
  5. script to copy files to machines
    By browolf in forum Scripts
    Replies: 1
    Last Post: 28th November 2005, 10:28 AM

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
  •