Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: working directory


From   Bill Rising <[email protected]>
To   "Stata Listserve" <[email protected]>
Subject   Re: st: working directory
Date   Mon, 5 May 2003 10:48:46 -0400

On 5/5/03 5:29, Hans J.  Baumgartner wrote

>Dear listers
>
>My institute switched to a network perpetual licence.
>Thus, the default working directory differs from my prefered working 
>directory and has to be changed manually each time when I start Stata 8. 
>I am not able to save a profile.do in the working directory since (i) I 
>have no write permission on that directory and (ii) my preferred profile 
>might differ from my colleagues preferred profile.

This is a pretty wild guess, because I don't run on a network. Still - 
perhaps the networked version recognises ~ as *your* home directory. If 
this is the case, you could try having the generic profile.do like

capture do ~/profile.do
if _rc != 601 {
  error _rc
  }

This might have  a chance of running the profile.do file in your home 
directory, and not whining if the file doesn't exist.

Just a guess.

Bill
*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index