Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - VB Sript to compare and delete files

Reply
 
Old 10-15-2009   #1 (permalink)
Darrin Owen


 
 

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
Old 10-16-2009   #2 (permalink)
Pegasus [MVP]


 
 

Re: VB Sript to compare and delete files


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

> 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
Reply

Thread Tools


Similar Threads
Thread Forum
ignore whitespace when comparing files using compare-object? PowerShell
Compare files and get the differential PowerShell
Compare timespan of Files? .NET General
Compare 2 files with 6,000 entries each PowerShell
Comparing files with compare-object PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46