Announcement

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

  • file C:\WINDOWS\System32\new.log could not be opened

    I am trying to replicate some Stata codes.

    But, this message appeared.

    file C:\WINDOWS\System32\new.log could not be opened


    I found there is no file which named new.log in System32.

    What can I do for solving this error?

  • #2
    Perhaps you do not have write permission for that direction. It's not a good place to store your own Stata files on a Windows PC any way.

    Comment


    • #3
      Hi Guest,

      you don't show us the code you're trying to run, so any help beyond Nick Cox's reply is guesswork.

      My guess is: The code you re-use contains something like
      Code:
      log using "new.log" , replace
      The original author executed this code in a working directory of his/her choice, but you execute it in the working directory your Stata starts with (which, then, seems to be Windows' System32 directory).

      Try to manually
      Code:
      cd "C:/Users/<your username>/Desktop"
      first. Or create an empty directory somewhere and cd into that.

      Regards
      Bela
      Last edited by sladmin; 30 Nov 2023, 11:59. Reason: anonymize original poster

      Comment


      • #4
        Thank you so much Nick Cox and Daniel Bela.
        I have solved my problem by recreate directory in Desktop folder.

        Thank you for your kind responses to silly question. lol

        Comment

        Working...
        X