Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Double-click to open .doh file
From
Sergiy Radyakin <[email protected]>
To
"[email protected]" <[email protected]>
Subject
Re: st: Double-click to open .doh file
Date
Mon, 22 Jul 2013 13:19:48 -0400
Stata can open multiple files (data, code, graphs). So it needs not
only the file name, but also an action verb to know what to do with
it. in your case the proper action would be: doedit.
Windows does not expect this behavior. It thinks that the program
would decide itself what to do with the file. So what windows does is
it runs something like:
c:\program files\myprog\myprog.exe d:\data\mydata.doh
while you want
c:\program files\myprog\myprog.exe doedit d:\data\mydata.doh
This can be adjusted in the registry.
Best, Sergiy
On Mon, Jul 22, 2013 at 10:41 AM, Matthew White
<[email protected]> wrote:
> Hi all,
>
> Using Stata 12.1 SE on Windows 7, I've just started using .doh files
> with -include-. I'd like to be able to double-click on a .doh file to
> open it in the do-file editor, as I do with do-files, but the .doh
> file extension isn't associated with Stata. When I set up the
> association myself, I get this error message when I double-click:
>
> . "C:\Users\matthew\Documents\Do-files\header.doh"
> unrecognized command: "C:\Users\matthew\Documents\Do-f invalid command name
> r(199);
>
> Has someone set up this association successfully? Any suggestions
> would be appreciated.
>
> Thank you,
> Matt
>
> --
> Matthew White
> Senior Project Associate
> Innovations for Poverty Action
> 101 Whitney Avenue, New Haven, CT 06510 USA
> www.poverty-action.org
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/faqs/resources/statalist-faq/
> * http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/