Problem specifying file location for FileSystemObject and XML DOM parser...

E

ezmiller

Hi,
A bit of a mysterious problem. I am trying to load an xml file into a
page on the client using Microsoft's XML DOM parser and then write to
that same file using the FileSystemObject.

But when I do this the two objects seem to require different types of
inputs specifying the file and file path.

For instance, say my file is in a sub directory "data" of the
directory containing the html files containing the script. I can load
the xml file by feeding the following string "data/users.xml". But if
I were to give the same input to the FileSystemObject OpenTextFile
method it would be unable ot find the file. The reason seems to be
that the FileSystemObject's default directory is the Desktop.

What do I provide as input to these two different objects that will
specify the file? I want to be able to provide a relative path because
this thing I am writing will not always be on the same computer and I
cannot rely on a stable directory structure.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,571
Members
45,045
Latest member
DRCM

Latest Threads

Top