Statalist


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

st: Inserting Windows Version and IP address into a log file from wit hin Stata


From   stephen.kay@adelphigroup.com
To   statalist@hsphsun2.harvard.edu
Subject   st: Inserting Windows Version and IP address into a log file from wit hin Stata
Date   Wed, 4 Jul 2007 11:53:00 +0100

I'm trying to write a .do file that "validates" the version of Stata on my
computer. Basically I'm using the do files that Stata provides which
assesses it's accuracy on NIST datasets for which certified results are
available (http://www.stata.com/support/cert/nist/
<http://www.stata.com/support/cert/nist/> ). I have a master do file which
first opens a log file before calling these do files in sequence.

I would also like this master do file to have commands that insert into the
same log file, the current date, current Stata version, current Windows
operating system used, and unique computer ID (I think I can use the IP
address for this). With these commands I can prove the tests apply to my
current complete settings. I do not know any commands in Stata that show the
current Windows operating system or the unique computer ID such that the
results can be easily saved in a log file. Can anyone please help?

I know I can use the SHELL command to access DOS commands that display this
information - ver and ipconfig, but I can't figure out how to incorporate
the results into the log file.

Many thanks,

Stephen

Stephen Kay
Director of Statistics

Adelphi Group Products
www.adelphigroup.com <www.adelphigroup.com>

Tel: +44 (0) 1625 577233
Fax:+44 (0) 1625 577294
Ddi: +44 (0) 1625 577332

Adelphi retains ownership of all data and fieldwork materials. In accordance
with the company's Terms and Conditions, written prior approval must be
obtained with regard to any use of the data in any items submitted for
publication or for use in marketing materials.




DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to this
message by anyone else is unauthorised.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or any
action or omission taken by you in reliance on it, is prohibited and may be
unlawful.  Please immediately contact the sender if you have received this
message in error. Thank you.
*
*   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