Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


compare files and folders

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> compare files and folders
  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 files and folders - 2/6/2008 6:00:57 PM   
  jdevroede

 

Posts: 6
Score: 0
Joined: 2/6/2008
Status: offline
Hi,

We use a couple of scripts that install several applications, copy's files, set registry settings, and so on... Now I'm working on a script that checks to see if the server installed ok. One of the parts that I would like to check is a comparison of a local directory and a network folder (that should have copied locally). I've been breaking my brain on several methods on doing this, but nothing good so far and was hoping to find some help here.

What I've come up with, so far is scanning the two folders (recursively), putting this information in two arrays and compare one with the other. This is just theoretical though, because uptil now I've only succeeded in recursively scanning the folder.

regards,

jeroen
 
 
Post #: 1
 
 RE: compare files and folders - 2/7/2008 1:28:42 AM   
  ebgreen


Posts: 4971
Score: 31
Joined: 7/12/2005
Status: offline
I hve used two dictionaries in the past to compare two folders. If you want to avoid writing your own solution, just use RoboCopy with a /L flag and it will tell you if there are differences without actaully doing any copying.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to jdevroede)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> compare files and folders 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