I recently reinstalled stata 10 on my computer with a new os (windows 7). On my old computer, I had installed in "c:\program files\stata". On the new computer, it was in "c:\program files\stata10" by default. I had previously written a bunch of ado and do files for data and log file manipulation that referenced hardcoded directories under "c:\ptogram files\stata".
I know that the sysdir command will reveal the STATA directory to be the install directory. Is there a way to retrieve that into a macro or tempvar that I can then reference from a do or ado file?
Yes, it would all work fine if I just renamed my stata install dir - but I'd rather not hardcode if possible.
Thanks,
George Hoffman
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/