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

st: Apostrophe in filename


From   Friedrich Huebler <[email protected]>
To   [email protected]
Subject   st: Apostrophe in filename
Date   Tue, 20 Jan 2004 13:22:43 -0800 (PST)

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"

Friedrich Huebler

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
*
*   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