[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Off-topic: DOS script for XML directory listing

Subject: RE: Off-topic: DOS script for XML directory listing
From: "Beckers, Marc" <Marc.Beckers@xxxxxxxxxxxxxx>
Date: Tue, 29 Feb 2000 15:51:42 +0100
script directory
> Could anyone give me a DOS script that can list the URLS of 
> all the (XML)
> files in a directory and write them to an XML-formatted output file? 
> 
Attached is a self-documenting Perl script that will do what you want for
HTML files.
All you need to do is edit the DOS dir call (line 23) to read in
files with the XML suffix rather than HTM*.

You must have Perl installed, of course.

The output file is called mother.xml, contains the
mother root element with each path in a file element.
The path names are relative to the working directory.
You can get the absolute path by deleting line 42.

Hope this helps. I use it.

Cheers -- Marc

Attachment: makexml.pl
Description: Binary data

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.