shotsy247
04-03-2009, 01:42 PM
Hi All,
I am writing an app to search through my site directory and write all of the files to a xml file from which a site map will be created.
I found a nice little code snippet on Google Site Maps that does this just fine.
The issue is that I don't want all of the pages on my site added to the file. My thought was to place a variable on all of the pages I wanted included. Then when the code snippet, which uses the FileSystemObject and FileObject scans the site, I could check each page for this variable. If it was there, add it to the xml, if not then don't.
I looked at the methods available with the File Object and there don't seem to be any that wil accomplish this goal. The TextStream Object for example only seems to return something if it is visually part of the page, not the asp code.
Any help would be appriciated.
Thanks
_t
I am writing an app to search through my site directory and write all of the files to a xml file from which a site map will be created.
I found a nice little code snippet on Google Site Maps that does this just fine.
The issue is that I don't want all of the pages on my site added to the file. My thought was to place a variable on all of the pages I wanted included. Then when the code snippet, which uses the FileSystemObject and FileObject scans the site, I could check each page for this variable. If it was there, add it to the xml, if not then don't.
I looked at the methods available with the File Object and there don't seem to be any that wil accomplish this goal. The TextStream Object for example only seems to return something if it is visually part of the page, not the asp code.
Any help would be appriciated.
Thanks
_t