Advertisement

06.15.2008 at 10:11AM PDT, ID: 23486362
[x]
Attachment Details

Need to find duplicates entries on a XML file via VBS script.

Asked by llarava in VB Script

I have an XML file that contains a 600 MAC addresses. This is file is exported from an applicattion and contains MAC address. I would like to find a script that could be run as schedule task and will check if there is any duplicate MAC address on the exported file.
If any duplication put it on a log txt file on the system. That way later on somebody can remove the duplicates.

The MAC is enter like follows: value="00028aac6086"

I did attach a sample of the file. This file currently contains 1000 MAC and is getting entries every day.

Any help?

Thank you.


 

 Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
- <authenticationProfile id="NA INTRANET WIRELESS USERS" description="">
- <checkListAttributes>
  <attribute name="Calling-Station-Id" type="string" multivalued="true" order="0" default="false" value="00028aac6081" /> 
  <attribute name="Calling-Station-Id" type="string" multivalued="true" order="0" default="false" value="00028aea6ad1" /> 
  <attribute name="Calling-Station-Id" type="string" multivalued="true" order="0" default="false" value="0013ce872661" /> 
  <attribute name="Calling-Station-Id" type="string" multivalued="true" order="0" default="false" value="001F3b7dda32" /> 
  <attribute name="Calling-Station-Id" type="string" multivalued="true" order="0" default="false" value="001b774d0221" /> 
  <attribute name="Calling-Station-Id" type="string" multivalued="true" order="0" default="false" value="001de075eb52" /> 
  <attribute name="Calling-Station-Id" type="string" multivalued="true" order="0" default="false" value="001f3b7f0314" /> 
  <attribute name="Calling-Station-Id" type="string" multivalued="true" order="0" default="false" value="001f3bd8d1d7" /> 
  <attribute name="Calling-Station-Id" type="string" multivalued="true" order="0" default="false" value="00d059bc0688" /> 
  <attribute name="Calling-Station-Id" type="string" multivalued="true" order="0" default="false" value="010203040502" /> 
  <attribute name="Calling-Station-Id" type="string" multivalued="true" order="0" default="false" value="00016ce98291" /> 
  <attribute name="Calling-Station-Id" type="string" multivalued="true" order="0" default="false" value="00028a31bf04" /> 
  <attribute name="Calling-Station-Id" type="string" multivalued="true" order="0" default="false" value="00028a40db09" /> 
  <attribute name="Calling-Station-Id" type="string" multivalued="true" order="0" default="false" value="00028a47ecf9" /> 
  <attribute name="Calling-Station-Id" type="string" multivalued="true" order="0" default="false" value="00028a4afe79" />
[+][-]06.15.2008 at 06:02PM PDT, ID: 21790305

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.18.2008 at 07:03PM PDT, ID: 21818747

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.18.2008 at 08:17PM PDT, ID: 21818963

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.19.2008 at 08:09PM PDT, ID: 21828167

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.19.2008 at 08:26PM PDT, ID: 21828224

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.19.2008 at 08:45PM PDT, ID: 21828291

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.19.2008 at 08:57PM PDT, ID: 21828334

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: VB Script
Sign Up Now!
Solution Provided By: RobSampson
Participating Experts: 1
Solution Grade: A
 
 
[+][-]06.22.2008 at 04:22PM PDT, ID: 21842643

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628