VB Script - Check Contents of Directory

Dell / Precision m90
December 21, 2009 at 10:13:47
Specs: Microsoft Windows XP Professional, 1.83 GHz / 2046 MB
I need to check to see if files exist in a directory based on the entries in a .xml 'manifest. file. If all the files are present, I would like to return a 'success.' If there are any files missing, I would like to return an error code & list the files that are missing. XML 'manifest' looks like this:

<?xml version="1.0" encoding="UTF-8" ?>
- <package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="extractfile_transmittal.xsd">
<ship_date>11/5/2009</ship_date>
<county>10</county>
<package_identifier>CCFRS20091104</package_identifier>
<abstract>The following are the CCextract files</abstract>
<special_instructions>None</special_instructions>
- <volume>
<volume_number>CCFRS20091104-1</volume_number>
<dataset_pcl>10.CCDD80J.PCLOUT.2009-11-04.000001.PCL.pgp</dataset_pcl>
<dataset_pcl>10.CCDD80J.PCLOUT.2009-11-04.000002.PCL.pgp</dataset_pcl>
<dataset_pcl>10.CCDD80J.PCLOUT.2009-11-04.000003.PCL.pgp</dataset_pcl>
<dataset_pcl>10.CCDD80J.PCLOUT.2009-11-04.000004.PCL.pgp</dataset_pcl>
<dataset_pcl>10.CCDD80J.PCLOUT.2009-11-04.000005.PCL.pgp</dataset_pcl>
<dataset_pcl>10.CCDD80J.PCLOUT.2009-11-04.000006.PCL.pgp</dataset_pcl>
<dataset_pcl>10.CCDD80J.PCLOUT.2009-11-04.000007.PCL.pgp</dataset_pcl>
<dataset_pcl>10.CCDD80J.PCLOUT.2009-11-04.000008.PCL.pgp</dataset_pcl>
<dataset_pcl>10.CCDD80J.PCLOUT.2009-11-04.000009.PCL.pgp</dataset_pcl>
<dataset_pcl>10.CCDD80J.PCLOUT.2009-11-04.000010.PCL.pgp</dataset_pcl>
<dataset_pcl>10.CCDD80J.PCLOUT.2009-11-04.000011.PCL.pgp</dataset_pcl>
<dataset_pcl>10.CCDD80J.PCLOUT.2009-11-04.000012.PCL.pgp</dataset_pcl>
<dataset_pcl>10.CCDD80J.PCLOUT.2009-11-04.000013.PCL.pgp</dataset_pcl>
<dataset_pcl>10.CCDD80J.PCLOUT.2009-11-04.000014.PCL.pgp</dataset_pcl>
<dataset_pcl>10.CCDD80J.PCLOUT.2009-11-04.000015.PCL.pgp</dataset_pcl>
</volume>
</package>


See More: VB Script - Check Contents of Directory

Report •


#1
December 21, 2009 at 16:02:22
what have you tried?

GNU win32 packages | Gawk


Report •
Related Solutions


Ask Question