Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Compare and replace files by date

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Compare and replace files by date
  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 and replace files by date - 10/10/2006 2:21:55 AM   
  healthycat

 

Posts: 2
Score: 0
Joined: 10/10/2006
Status: offline
Hi!

I'm very new to VBScript and some initial spoonfeeding will be most welcome because I have a real tight deadline (2 DAYS ONLY!!!)

My job is as follows:

I have one version of some files in a folder in ComputerA and another version of these same files in another folder ComputerB. Both computers are in the same network.

What I need to do is compare the" date CREATED" in each file of ComputerA  against the "date CREATED" of the files in ComputerB. If the " date CREATED" of a file in computerA is more recent than that of computerB, then the file of ComputerB is replaced by the version in computerA.

I have to specify the folder paths where the files are located in both computers.

Please dear scripters, if you have some free time for this task, I would be very grateful

Thanks a lot for reading my post.

< Message edited by healthycat -- 10/10/2006 2:29:25 AM >
 
 
Post #: 1
 
 RE: Compare and replace files by date - 10/10/2006 4:40:58 AM   
  Snipah


Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
If you had read the Read Me First topic in this forum, you'd know that we don't do your homework.

Let's quote that: (full post: http://www.visualbasicscript.com/m_24727/tm.htm)

quote:


We are not here to write scripts for you, we can fully support you in you writing your scripts.  If you make the attempt and are still having issues, we can and will gladly
help you out, you can Search our site for up-to-date information on retrieving objects from AD, read/write to the registry, etc...

If you have searched and still can't find what you are looking for, then make sure you include what you have searched for in your post, it will both show that you have made
the attempt, which will prevent the "Search first" posts and possibly someone can help refine your search terms to help you find the post you are looking for.

First thing to start (any project actually) is to write every/each step of the process, what you want to accomplish. Then you must start with step one, and slowly work down to the last step...



_____________________________

For more information, please see the "Read me First" topic.

http://www.visualbasicscript.com

(in reply to healthycat)
 
 
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 and replace files by date 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