Hi!
I think the subject says it all. The spaces in filenames part needs some investigation, though. teTeX proposes this syntax:
One more point. In LATEX, the quotes are needed inside the braces, thus
\input{a b} % fails
\input{"a b"} % ok
This quoting mechanism comes into play after TEX has tokenized and expanded the
input. So, multiple spaces and tabs may be seen as a single space, active characters such
as ‘~’ are expanded first, and so on.
(from web2c.pdf)
You can also use environmet variables in filenames now.
/Andreas