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

Re: st: working directory


From   "Mark Schaffer" <[email protected]>
To   [email protected]
Subject   Re: st: working directory
Date   Mon, 5 May 2003 16:02:47 +0100

Another possibility, if you're using Windows, is to launch Stata with 
a shortcut and put

N:\pathtorightdirectoryhere\wstata.exe do "c:\stata\profile"

in the Target window (where you replace N with the correct network 
drive letter etc.).

--Mark

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

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


Prof. Mark E. Schaffer
Director
Centre for Economic Reform and Transformation
Department of Economics
School of Management & Languages
Heriot-Watt University, Edinburgh EH14 4AS  UK
44-131-451-3494 direct
44-131-451-3008 fax
44-131-451-3485 CERT administrator
http://www.som.hw.ac.uk/cert
*
*   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