One problem is enough
April 28, 2010 10:41 PM Subscribe
Can somebody point me to the documentation for Microsoft's htmlfile ActiveXObject?
posted by flabdablet to computers & internet (4 answers total)
I need a little Windows script that uploads all the PDF files in the current folder to a web/FTP server, then regenerates an HTML page containing links to the uploaded files.
I'm writing it in JScript, and I would like it to end up as a simple, single, double-clickable .js file, so Windows Script Host will be what runs it, not a browser.
It's all done except for the part that reads in the existing HTML file, replaces the existing list of links with the regenerated list, and writes out the new HTML file. Assorted searches are giving me the hint that the first line I should be writing for this is
var doc = new ActiveXObject("htmlfile");
but I have no clue what to do with the resulting doc object. Can I populate it from a text stream containing HTML? How can I fiddle with its bits? How can I write the result out to a new text stream? If I do it this way, will any of the existing HTML indenting and/or commenting make it through to the output file?
So I'm looking for the official Microsoft documentation on the htmlfile object, and utterly failing to find it on MSDN. Can some kind soul link it for me? I so don't want to do this with regexes.