Announcement

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

  • Define a Current Directory for several users

    Hi everyone:

    I'm new to this forum so sorry if I'm don't follow appropiate style for questions


    Problem: Everytime I share a dofile to someone he must update the current directory to the place where the Stata database is stored in his computer. Is there any way in Stata to define a common workspace or route or any program that allows it?


  • #2
    One solution is to define the directories for different users like this using MS Windows-like directories:
    Code:
    capture cd "c:\users\juan\"
    capture cd "d:\system\different user"
    
    /* More Code Goes Here */
    The capture traps any errors allowing the program to keep running. and the default directory should be changed to one or the other if correctly specified.

    Comment

    Working...
    X