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

Re: st: RE: Novel feature of -shell- under Windows


From   Stas Kolenikov <[email protected]>
To   [email protected]
Subject   Re: st: RE: Novel feature of -shell- under Windows
Date   Tue, 13 Jul 2004 12:03:09 -0400 (EDT)

>I was able to reproduce the behavior that Roger described and eventually
>track down the problem. This problem occurs when the command issued to
>-shell- must be enclosed in quotation marks. In some circumstances this
>is unavoidable since the command issued to -shell- is located in a folder
>such as "Program Files".

An ugly workaround for this is to write the path as c:\progra~1\ provided
that you don't have any folders under c:\ with names starting with
sequence "progra". Chances are there won't be any... but if you do,
they'll be named progra~2, progra~3 etc. in order of appearance, whatever
that might mean to Windows. This is the way the long file names used to be
stored under FAT32 file system with 8.3 symbols convention.

If you need to pick a name from registry or an environment variable to use
in your -shell- call, chances are it comes with spaces in it, so it might
be difficult to abbreviate the name properly, other than to parse it fully
with -tokenize, parse("\")- and then abbreviate each token to "??????~1".
It should not take too long to patch Stata kernel at Stata Corp side, but
in the meanwhile you can use this (not very reliable) trick.

 ---                                    Stas Kolenikov
 --       Ph.D. student in Statistics at UNC-Chapel Hill
 - http://www.komkon.org/~tacik/  -- [email protected]

* This e-mail and all attachments to it are not intended to provide any
* reasonable point of view and was transmitted to you in error. It
* should be immediately deleted by all recipients unless they really
* enjoy communicating with the author :). Other restrictions apply.

*
*   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