Login | |
|
 |
RE: File compare - 2/28/2006 11:50:35 AM
|
|
 |
|
| |
Cybex
Posts: 412
Score: 0
Joined: 9/14/2005
From: Florida
Status: offline
|
To what extent do you need to compare? If different then ... or do you need to know what is different? Cybex
_____________________________
Common sense is not so common.
|
|
| |
|
|
|
 |
RE: File compare - 3/1/2006 2:23:38 AM
|
|
 |
|
| |
kirrilian
Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
|
why not just go by the modified date? it doesnt matter what the modification is at that point, it would replace the older version. quick and easy
_____________________________
Have you searched here ? VBScript Fundamentals My Site
|
|
| |
|
|
|
 |
RE: File compare - 3/1/2006 2:28:56 AM
|
|
 |
|
| |
ebgreen
Posts: 5069
Score: 31
Joined: 7/12/2005
Status: offline
|
Let me see if I can clarify the problem and hopefully make sure that I understand it completely. There is an INI file on the server and one on the client. There are some options that you would like updated on the client if they are different from the server but not all options. You don't want the client INI to update the server INI ever. Is this a correct summation?
_____________________________
"... 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
|
|
| |
|
|
|
 |
RE: File compare - 3/1/2006 2:36:45 AM
|
|
 |
|
| |
ebgreen
Posts: 5069
Score: 31
Joined: 7/12/2005
Status: offline
|
It is possible. Is the smmation that I posted correct? If it is then I would recommend using a dictionary to hold each INI file. There may even be some INI file code out on the web have you checked?
_____________________________
"... 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
|
|
| |
|
|
|
 |
RE: File compare - 3/1/2006 2:45:08 AM
|
|
 |
|
| |
ebgreen
Posts: 5069
Score: 31
Joined: 7/12/2005
Status: offline
|
Any chance you could post a sample of the ini file and let us know which items on the server should override the client and which items should never be changed on the client? YOu can of course obfuscate any security sensitive info.
_____________________________
"... 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
|
|
| |
|
|
|
 |
RE: File compare - 3/1/2006 3:00:03 AM
|
|
 |
|
| |
ebgreen
Posts: 5069
Score: 31
Joined: 7/12/2005
Status: offline
|
I'm sorry I have a really bad headache and am having a problem concentrating today. ;) So if this were the server INI: [Section1] Item1=foo Item2=abc [Section2] Item1=1 Item2=2 [Section3] Item1= Item2= And this were the client: [Section1] Item1=xyz Item2=abc [Section2] Item1=1 Item2=2 [Section3] Item1= Item2= Then Item1 would be changed in every section of the client INI because the Server value is different. Or would it only be changed in sections where the client had some value already?
_____________________________
"... 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
|
|
| |
|
|
|
 |
RE: File compare - 3/1/2006 4:05:37 AM
|
|
 |
|
| |
ebgreen
Posts: 5069
Score: 31
Joined: 7/12/2005
Status: offline
|
I don't think anything could make it worse. Since I am having comprehension issues, I think the best solution would be for me to give you general solutions then help you with specific issues that you have with your code. I think the first step will be for you to get/create code that will store the contents of an INI file in a data structure in memory. Let me know when you have that or if you have problems with that then we can move forward.
_____________________________
"... 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
|
|
| |
|
|
|
|
|