Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Running .do file from Windows command line

    Hi,
    I am getting frustrated by what seems to be a simple problem: I can't seem to get a .do file on my desktop to run from the command prompt in Windows. Whenever I call on the .do file, it simply opens it up in the Stata .do file editor instead of executing...is there a way to execute instead?
    Thanks!

  • #2
    This Stata FAQ might be useful: http://www.stata.com/support/faqs/windows/batch-mode/

    Comment


    • #3
      Change doedit --> to --> do in Windows file associations (use regedit).
      Best, Sergiy Radyakin

      Comment


      • #4
        For future reference, using Linux and STATA 17, to run a .do file from the command line just call `stata [DO_FILE]` (`stata` is not to be confused with `xstata`).

        Comment

        Working...
        X