+ 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,153
    Thank Post
    724
    Thanked 224 Times in 116 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,579
    Thank Post
    228
    Thanked 853 Times in 732 Posts
    Rep Power
    294
    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
    11,074
    Thank Post
    853
    Thanked 2,676 Times in 2,270 Posts
    Blog Entries
    9
    Rep Power
    769
    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
  •