Announcement

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

  • Associate .do and .tmp files to Stata18

    I recently installed Stata18 on my PC. All Stata files are automatically associated to Stata18, except .do and .tmp files. Via the settings of my computer ('choose default apps by file type') Stata 18 is not in the drop-down list of availabe apps (for .tmp and .do file types specifically). Again, all other Stata file types are correctly linked to Stata18. Has anyone encountered this issue?

  • #2
    Are you on a Windows PC? If so, you can create the association by right clicking on the file -> open with -> Choose another app -> More apps -> Look for another app on this PC. Then browse to your Stata 18 files which usually should be located within your Windows (C: ) > Program Files.
    Last edited by Andrew Musau; 06 May 2025, 04:45.

    Comment


    • #3
      Thank you Andrew, indeed I am using a Windows PC. Unfortunately I already tried your suggestion, without succes. Strangely, when I go for that route, the do-file is automatically opened with an older version of Stata (even though I selected the Stata18.exe file as app). My collegae has the exact same issue by the way, which makes me think there is some sort of bug.

      Comment


      • #4
        Try forcibly associating .do files with Stata 18 by opening the Command Prompt (type cmd -> then press Enter on search) as an admin and running:

        Code:
        assoc .do=stata18.do
        ftype stata18.do="C:\Program Files\Stata18\StataSE-64.exe" "%1"
        Change the path and Stata edition if different.

        Comment

        Working...
        X