In Stata, how do I change the path to user-written ado files?

By default, Stata for Windows uses the c:\ado directory for user-written ado files. You can list Stata's system directories by executing the .sysdir command:

     STATA:  C:\Program Files\Stata11\
   UPDATES:  C:\Program Files\Stata11\ado\updates\
      BASE:  C:\Program Files\Stata11\ado\base\
      SITE:  C:\Program Files\Stata11\ado\site\
      PLUS:  c:\ado\plus\
  PERSONAL:  c:\ado\personal\
  OLDPLACE:  c:\ado\

If you need to change the default path, run the .sysdir set command. Suppose you store Long and Freese's SPost module in the e:\ado\plus directory of a memory stick or flash card. You would then need to run the following command:

  .sysdir set PLUS "e:\ado\plus"
  .sysdir set PERSONAL "e:\ado\plus"

Stata will then find user-written commands in the e:\ado\plus directory.

If you have questions about using statistical and mathematical software at Indiana University, contact Research Analytics. Research Analytics is located on the IU Bloomington campus at Woodburn Hall 200; staff are available for consultation Monday-Friday 9am-noon and by appointment.

For details about availability of UITS services during winter break, see UITS winter break support hours.

This is document arur in the Knowledge Base.
Last modified on 2015-06-23 00:00:00.

Contact us

For help or to comment, email the UITS Support Center.