Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: how to run do files in two computers, one with Windows XP, another with Vista


From   Glenn Hoetker <ghoetker@uiuc.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: how to run do files in two computers, one with Windows XP, another with Vista
Date   Tue, 3 Jun 2008 17:06:17 -0500

I have a quasi-manual approach for this. Early in the do file, I have two lines

local basedir c:/xxx/xxxx
local basedir f:/xxx/xxxx

Then, later in the file, I'll have a line like

cd `basedir'

So, whenever I move, I just comment out the non-relevant line at the top. I still have to change something manually, but just in one place.

G.



Glenn Hoetker
Associate Professor (Business, Law, Institute for Genomic Biology)
Resident Associate, Center for Advanced Study, Science and Technology in the Pacific Century (STIP) initiative
Faculty Fellow, Academy for Entrepreneurial Leadership
University of Illinois
217-265-4081
ghoetker@uiuc.edu
Personal website: www.business.uiuc.edu/ghoetker
Science & Technology in the Pacific Century initiative website: www.business.uiuc.edu/stip

On Jun 3, 2008, at 4:15 PM, Adrian de la Garza wrote:



Hello everyone!

Quick question regarding running do files in two separate computers. My old laptop and my desktop both have Windows XP and I've been running my do files with lines with the following contents:

cd "C:\documents and settings\adrian\my documents\research\"

and I've never had any problems. Now I have a new laptop with Windows Vista and the directory where My Documents are saved no longer comes after "documents and settings"...

what can I do in this case? Do I need to change all of my do files or is there an easier fix?

Thank you!!

Adrian

_________________________________________________________________
It’s easy to add contacts from Facebook and other social sites through Windows Live™ Messenger. Learn how.
https://www.invite2messenger.net/im/?source=TXT_EML_WLH_LearnHow
*
* 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/

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index