Nick -> Nick: But _maximized_? 
Nick Winter
I use the following program to automate opening up my editor (TextPad) 
with a specified file to edit. Presumably code from this could be 
modified to simply open up the editor automatically.
This program lets me type "tp myfile.ado" to open up -myfile.ado- in the
editor.  The -findfile- line means that I can load up an ado file even 
if I'm not in its directory, as long as its along the ado path.
--Nick Winter
program tp
         version 9.1
         qui findfile `1'
         local fn `r(fn)'
         local fn : subinstr local fn "/" "\" , all
         winexec "c:\program files\textpad 4\textpad.exe" "`r(fn)'"
end
> 
> Martin Weiss
> 
> I was wondering whether it is possible to have the profile.do open
your
> favorite texteditor in a maximized window automatically. 
> http://fmwww.bc.edu/repec/bocode/t/textEditors.html gives advice on
how
> to
> handle editors to edit do-files. I cannot find a section on passing
> command
> line arguments to the winexec command to have it open the editor
> maximized,
> though. Any ideas?
*
*   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/