+ Post New Thread
Results 1 to 4 of 4
Scripts Thread, script to check folder in Coding and Web Development; Hi does anyone have a script that will check a local folder is there if so is it older then ...
  1. #1
    ful56_uk's Avatar
    Join Date
    Mar 2008
    Location
    Essex
    Posts
    554
    Thank Post
    105
    Thanked 23 Times in 21 Posts
    Rep Power
    17

    script to check folder

    Hi

    does anyone have a script that will check a local folder is there if so is it older then the one on the server is so replace the contains.

    I need to copy a folder to the root of c but only want to do it if there is a newer one on the server so it doens get copyied evertime a pc boots up.

    Thanks

    mark

  2. #2

    EduTech's Avatar
    Join Date
    Aug 2007
    Location
    Reading
    Posts
    5,038
    Thank Post
    160
    Thanked 909 Times in 713 Posts
    Blog Entries
    3
    Rep Power
    270
    this should help, The Windows command Xcopy and its uses

    Xcopy will do your trick and then just use a switch /D dont add a date as then it will only copy files/folder if the source on the server is newer then the existing folder on the c:\

    James.

  3. Thanks to EduTech from:

    ful56_uk (13th September 2009)

  4. #3
    ful56_uk's Avatar
    Join Date
    Mar 2008
    Location
    Essex
    Posts
    554
    Thank Post
    105
    Thanked 23 Times in 21 Posts
    Rep Power
    17
    cool thanks, how do you run this in a startup script?

  5. #4

    EduTech's Avatar
    Join Date
    Aug 2007
    Location
    Reading
    Posts
    5,038
    Thank Post
    160
    Thanked 909 Times in 713 Posts
    Blog Entries
    3
    Rep Power
    270
    Quote Originally Posted by ful56_uk View Post
    cool thanks, how do you run this in a startup script?
    Code:
    xcopy /d "source - UNC" "Destination c:\"
    James.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 17
    Last Post: 19th March 2010, 11:51 PM
  2. script to check if folder is present
    By ful56_uk in forum Scripts
    Replies: 7
    Last Post: 25th July 2009, 11:45 AM
  3. A script to check for UAC
    By Oops_my_bad in forum Scripts
    Replies: 0
    Last Post: 29th April 2009, 11:31 AM
  4. Replies: 2
    Last Post: 17th April 2008, 11:25 AM
  5. VB Script ti check for folder and then copy contents to PC
    By tosca925 in forum How do you do....it?
    Replies: 4
    Last Post: 2nd October 2006, 08:15 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
  •