Announcement

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

  • Error calling tempfiles after Windows update

    Dear Statalist,

    I am working with Stata 15 SE on a Windows 10 machine. After a standard Windows update yesterday, Stata is giving an error calling tempfiles. I can't quite understand the error though I suspect that some directories may have changed after the update. I have not made any other changes on my computer. The error is reproduced below. Any advice would be greatly appreciated!

    Best,
    Mihir


    Code:
    . sysuse auto, clear 
    (1978 Automobile Data)
    
    . tempfile test
    
    . save "`test'"
    file C:\Users\Mihir Sharma\AppData\Local\Temp\ST_e84_000001.tmp saved
    
    . display "`test'"
    C:\Users\Mihir Sharma\AppData\Local\Temp\ST_e84_000001.tmp
    
    . use `test'
    invalid 'Sharma' 
    r(198);
    
    end of do-file
    
    r(198);

  • #2
    This does not suggest any problem with Windows or Stata. It's a coding error. You have to do
    Code:
    use "`test'"
    The quotes are needed because the path name has a space between Mihir and Sharma. Any filename (including tempfiles) that contains a space within it has to be embedded in quotes when used in a Stata command.

    Comment


    • #3
      My bad, thanks Clyde!

      Comment

      Working...
      X