Part of the key here is the ordering provided by -which-, 
followed by the information provided by -adopath-. The 
trick is to -cd- so that Stata first sees the program you want. 
Often the way to do that is to change to the program's
own directory. 
However, it is not a good idea to work in Stata's own 
space, even if you know exactly what you are doing. 
In addition, you may need to discard any pertinent program
in memory. 
If a command is built-in, the only way to do it is with
an older executable. 
I thought from your examples that you had installed a 
user-written program in official Stata's space, but 
-ivtobit- is an official command. 
When I want to do this, it is for different versions of my 
own programs. It is not for different versions of an 
official command.
Nick 
[email protected] 
[email protected]
 
> Is there any way to make Stata use one command instead of 
> another with the same name (i.e. ways different from 
> re-naming, removing, etc...)? 
> 
> E.g. make Stata using the original (old) version of -xtgee- ...
> 
> . which xtgee, all
> 
> C:\Programmi\Stata9\ado\updates\x\xtgee.ado
> *! version 4.4.11  23oct2006
> 
> C:\Programmi\Stata9\ado\base\x\xtgee.ado
> *! version 4.4.6  27jun2005
> 
> ... or the user-written command
> 
> . which ivtobit, all
> 
> C:\Programmi\Stata9\ado\updates\i\ivtobit.ado
> *! version 1.1.9  30nov2006
> 
> C:\Programmi\Stata9\ado\base\i\ivtobit.ado
> *! version 1.1.5  03apr2005
> 
> c:\ado\plus\i\ivtobit.ado
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/