Announcement

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

  • Running a *.do file automatically when Stata opens

    Hi,

    Can Stata run a *.do file automatically as soon as it opens? Trying to run an automatic message like the one below each time I open it.

    Code:
    . display %~59s "Good morning!"
                           Good morning!
    Thanks!

  • #2
    Code:
    help profile

    Comment


    • #3
      Thanks Daniel, never heard of the profile command before.

      Comment


      • #4
        It's not a command. Rather Stata looks on start-up for a do-file called profile.do

        Code:
        help profilew
        documents this for Windows, from which the name of the help for other OS can be guessed.

        Comment


        • #5
          Reach out and hug someone.

          [replacement of duplicate post]

          Comment

          Working...
          X