Windows Vista Forums

VB Sript to compare and delete files
  1. #1


    Darrin Owen Guest

    VB Sript to compare and delete files

    Hi,

    I have been tasked with something that I find difficult and need some
    help. I need to compare to folder structures (Files and Subfolders and
    files) from a project that is wrapping up. What they have asked if I
    can do a script that compares 2 folders in different locations, and
    copies the original folder, subfolder and files and overwrites the
    ones in the project folder which are identical structure and then
    compares again the 2 folders and deletes all the files in the project
    folder that does not exist in the original folder??

    Now I have done a script that will allow to go through and report back
    in excel on the folder and subs and detirmine the folder sizes but not
    detirmine the files..

    Can anyone help me out on this???



    Thanks
    Darrin

      My System SpecsSystem Spec

  2. #2


    Pegasus [MVP] Guest

    Re: VB Sript to compare and delete files


    "Darrin Owen" <cycling1@newsgroup> wrote in message
    news:a8ede28f-0286-4e39-82f4-cbc44c32df3a@newsgroup

    > Hi,
    >
    > I have been tasked with something that I find difficult and need some
    > help. I need to compare to folder structures (Files and Subfolders and
    > files) from a project that is wrapping up. What they have asked if I
    > can do a script that compares 2 folders in different locations, and
    > copies the original folder, subfolder and files and overwrites the
    > ones in the project folder which are identical structure and then
    > compares again the 2 folders and deletes all the files in the project
    > folder that does not exist in the original folder??
    >
    > Now I have done a script that will allow to go through and report back
    > in excel on the folder and subs and detirmine the folder sizes but not
    > detirmine the files..
    >
    > Can anyone help me out on this???
    >
    > Thanks
    > Darrin
    This particular wheel has been invented some time ago by the authors of
    robocopy.exe, which you can download from the Microsoft site.



      My System SpecsSystem Spec

VB Sript to compare and delete files problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: ignore whitespace when comparing files using compare-object? Shay Levy [MVP] PowerShell 0 08 Mar 2009
Compare files and get the differential IT Staff PowerShell 2 24 Oct 2008
Compare timespan of Files? Daniel Di Vita .NET General 1 07 May 2008
Compare 2 files with 6,000 entries each Marco Shaw PowerShell 5 06 Jul 2007
Comparing files with compare-object Marco Shaw PowerShell 4 06 Jul 2007