|
-
Aug 19th, 2002, 03:06 AM
#1
Thread Starter
Retired VBF Adm1nistrator
do you know xml ?
Code:
<report entireList="False">
<computer computerName="jamie" computerOS="Windows 2000 (NT 5.0.2195)" reportCreated="6/8/02 13:05:35" userLoggedOn="jamie">
<computerHardware>
<cpu>
<cpuNumberOfCPUs>1</cpuNumberOfCPUs>
<cpuProcessorLevel>Intel Pentium Pro, II, III or 4</cpuProcessorLevel>
<cpuProcessorRevision>Model 8, Stepping 3</cpuProcessorRevision>
<cpuProcessorSpeed>646 MHz</cpuProcessorSpeed>
<cpuProcessorType>Pentium</cpuProcessorType>
</cpu>
<drives>
<drive>
<driveName>A:\</driveName>
<driveSort>Removable drive</driveSort>
<driveLabel>NoName</driveLabel>
<driveSerial>0000-0000</driveSerial>
<driveSize>0 Bytes</driveSize>
<driveFree>0 Bytes</driveFree>
<driveUsed>0 Bytes</driveUsed>
<driveType>Removable drive</driveType>
</drive>
<drive>
<driveName>C:\</driveName>
<driveSort>Fixed drive</driveSort>
<driveLabel>LOCAL DISK</driveLabel>
<driveSerial>137A-10F8</driveSerial>
<driveSize>12,054,659,072 Bytes</driveSize>
<driveFree>462,921,728 Bytes</driveFree>
<driveUsed>11,591,737,344 Bytes</driveUsed>
<driveType>Fixed drive</driveType>
</drive>
<drive>
<driveName>E:\</driveName>
<driveSort>CD-ROM drive</driveSort>
<driveLabel>NoName</driveLabel>
<driveSerial>0000-0000</driveSerial>
<driveSize>0 Bytes</driveSize>
<driveFree>0 Bytes</driveFree>
<driveUsed>0 Bytes</driveUsed>
<driveType>CD-ROM drive</driveType>
</drive>
</drives>
<memory>
<memoryFreeMemory>106,500 KBytes</memoryFreeMemory>
<memoryPercentUsed>59 %</memoryPercentUsed>
<memoryTotalMemory>261,552 KBytes</memoryTotalMemory>
</memory>
<printers>
<printerInfo>Fax</printerInfo>
<printerInfo>\\NTSERVER\HP LaserJet 5P/5MP (HP)</printerInfo>
</printers>
</computerHardware>
<installedApplications>
<DisplayName> Adobe Acrobat 4.0, 5.0</DisplayName>
<DisplayVersion>5.0</DisplayVersion>
<InstallLocation>C:\Program Files\Adobe\Acrobat 5.0</InstallLocation>
<Publisher>Adobe Systems, Inc.</Publisher>
<UninstallString>C:\WINDOWS\ISUNINST.EXE -f"C:\Program Files\Common Files\Adobe\Acrobat 5.0\NT\Uninst.isu" -c"C:\Program Files\Common Files\Adobe\Acrobat 5.0\NT\Uninst.dll"</UninstallString>
<URLInfoAbout>http://www.adobe.com/prodindex/acrobat/main.html</URLInfoAbout>
<DisplayName> AOL Instant Messenger (SM)</DisplayName>
<DisplayVersion></DisplayVersion>
<InstallLocation></InstallLocation>
<Publisher></Publisher>
<UninstallString>C:\Program Files\AIM95\uninstll.exe -LOG= C:\Program Files\AIM95\install.log -OEM=</UninstallString>
<URLInfoAbout></URLInfoAbout>
etc. etc.
Just wondering, If I'm recording, the computer name, OS, installed applications, some hardware info, how should it be laid out in an xml file ?
I've ****all experience with XML...
So I was thinking, the first part there <computer blah= ....>, originally that was :
Code:
<computer>
<computerName>jamie</computerName>
<computerOS>Windows 2000 (NT 5.0.2195)</computerOS>
<reportCreated>6/8/02 13:05:35</reportCreated>
<userLoggedOn>jamie</userLoggedOn>
<computerHardware>
<cpu>
...
But well... both look sorta correct.
So I'm not sure which one to go with.
And as there is loads of other information I have to record, just wondering what's the proper way ?
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|