📄 profilem.hlp
字号:
{smcl}
{* 30mar2005}{...}
{cmd:help profilem}
{hline}
{title:Title}
{p 4 16 2}{hi:[GSM] A.7 Executing commands every time Stata is started}
{title:Description}
{pstd}
Stata looks for the file profile.do when it is invoked, and if it finds it,
executes the commands in it. Stata looks (1) in the directory where Stata was
installed, (2) in the current directory, (3) along your PATH, and
finally (4) along the adopath (see {helpb adopath}). We recommend that
you put profile.do in your home directory.
{title:Examples}
{pstd}
Say that every time you started Stata you wanted memory set to 5
megabytes (see {helpb memory}).
{p 8 12 2}Create profile.do in your home directory containing
{p 8 12 2}{cmd:set memory 5m}
{p 8 12 2}When you invoke Stata, this command will be executed:
{p 8 12 2}{res:running /Users/mydir/profile.do ...}{p_end}
{cmd:. _ }
{pstd}
profile.do is treated just as any other do-file once it is executed;
results are literally as if you started Stata and then typed
{cmd:run profile.do}. The only special thing about profile.do is that Stata
looks for it and runs it automatically. If profile.do does not already exist,
then you will have to create it. This can be done just as you would create
any other do file.
{pstd}
See {hi:[U] 16 Do-files} for an explanation of do-files. They are nothing
more than text (ASCII) files containing a sequence of commands for Stata to
execute.
{title:Also see}
{psee}
Manual: {bf:[GSM] A.7 Executing commands every time Stata is started}
{psee}
Online: {helpb do}, {helpb doedit}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -