Just wanted to add to Steven's advice:
shell start c:\mydir\my.pdf
will do the same as Steven described, with 2 differences:
1. the prompt window will close almost instantly
2. Stata will not wait for you to close Acrobat Reader (or whatever
program is handling PDFs) and will continue with your program (do/ado)
This may be useful if you want to open multiple PDFs (or XLSs, or
whatever) files simultaneousely or open your intermediate results and
continue computations.
This works in Windows only. "Start" can be implemented as internal or
external command in different versions of Windows (i.e. some of them
have start.exe). In theory it shouldn't matter, as long as start.exe
is in one of the directories along the path.
Best regards, Sergiy
On 5/27/08, Steven Dubnoff <[email protected]> wrote:
> At 09:33 AM 5/27/2008, Martin wrote:
>
> > I am wondering whether there is a way to make Stata find executables on
> its
> > own.
> >
>
> Windows can find a properly installed program on its own and it is smart
> enough to use the extension to know which program to find. So if you type:
>
> shell c:\mydir\my.pdf
>
> at the Stata prompt, windows will launch Acrobat reader, which will then
> display my.pdf.
>
> The only downside of this technique is that you may see an open command
> prompt window.
>
> Best,
>
> Steve
>
>
>
>
> ----------------------------------------------------------------
> Steven Dubnoff [email protected]
> Circle Systems We make your data instantly usable.
> Download Stat/Transfer from http://www.stattransfer.com
> 1001 Fourth Avenue, #3200 (206) 682-3783
> Seattle, WA 98154 Fax (206) 328-4788
>
>
>
> *
> * 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/
>
*
* 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/