Greg Ercolano wrote:
> Another way to protect the backslashes would be to use:
>
> r"p:\" # same as "p:\\"
Meh, that 'r' technique only works *if* the backslash is not at the end
of the string. Since that *is* the case here, r"p:\" won't work..
you'd *have* to use "p:\\".
Of course, using front slashes bypasses all this.
Front slashes work fine in this context, as the Windows kernel internally
understands fronts (/) and backs (\) equally well in pathnames.
It's only DOS commands, and some of Microsoft's browsers that have trouble
with fronts, but that's due to the design of just those Microsoft applications,
and not the OS itself.
--
Greg Ercolano, erco@(email surpressed)
Seriss Corporation
Rush Render Queue, http://seriss.com/rush/
Tel: (Tel# suppressed)
Fax: (Tel# suppressed)
Cel: (Tel# suppressed)
|