Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Apostrophe in filename


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Apostrophe in filename
Date   Wed, 21 Jan 2004 09:19:26 -0000

Friedrich is right. In fact -log2html- zaps
the apostrophe deliberately. At this moment
I can't recall why it does this -- whether
it is a feature from some point of view or
that was just some misguided notion on our
part. If my co-authors can't recall either,
then we will fix it. For the moment Friederich
has shown a work-around.

Nick
[email protected]

> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of Friedrich
> Huebler
> Sent: 20 January 2004 21:23
> To: [email protected]
> Subject: st: Apostrophe in filename
>
>
> Stata for Windows can generally handle filenames containing
> apostrophes but some commands cannot. One such command is
> -log2html-,
> available at SSC.
>
> . log2html "Cote d'Ivoire.smcl"
> file Cote dIvoire.smcl not found
> r(601);
>
> Can -log2html- be made to recognize a file with an apostrophe in its
> name, perhaps through clever use of additional quote marks? The only
> solution I found (besides renaming all offending files, which is
> impractical) is a combination of -copy- and -erase- commands.
>
> . copy "Cote d'Ivoire.smcl" "Cote dIvoire.smcl"
> . log2html "Cote dIvoire.smcl"
> . copy "Cote dIvoire.html" "Cote d'Ivoire.html"
> . erase "Cote dIvoire.smcl"
> . erase "Cote dIvoire.html"

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index