Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Compare 2 File System Locations

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,48966
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> Compare 2 File System Locations
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Compare 2 File System Locations - 7/2/2007 6:28:27 AM   
  prodonjs

 

Posts: 3
Score: 0
Joined: 6/19/2007
Status: offline
A coworker wanted a script to compare two directories against one another to see in a convenient report what the differences were between the directory and file structure of the two locations. This script takes two directories (or just a simple drive letter) as parameters and then tries to match each file and folder in the first location to a corresponding entry in the second location. Matches will only occur if the file exists and shares the same Modified On date.

This first version is probably a little bit crude, but it does give a nice, tab-indented report file to display the file-system hierarchy. I would really like to make the reports more useful. I would love if they could be in XML/HTML format with different color schemes to immediately give the user the information they want. If anyone is interested in expanding this, let me know as I feel this would be a useful enhancement.


      
 
 
Post #: 1
 
 RE: Compare 2 File System Locations - 7/2/2007 1:21:43 PM   
  dm_4ever


Posts: 2174
Score: 32
Joined: 6/29/2006
From: Orange County, California
Status: offline
Even thought there's apps out there like WinDiff that do similar things I like the idea.

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to prodonjs)
 
 
Post #: 2
 
 RE: Compare 2 File System Locations - 7/19/2007 11:59:24 PM   
  Singaravelan

 

Posts: 2
Score: 0
Joined: 6/15/2007
Status: offline
Thanks for the script. I guess this is exactly what i have been searching for.
Moreover even though windiff exists, it is not possible to customise as we want with that.

Regards
Velan

(in reply to dm_4ever)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> Compare 2 File System Locations Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts