You can make a keyboard macro to do just that.
create a macro which contains the following
{F10}wc{F10}wh
Glenn
>I don't really use the command window much and I was wondering if there is a way of switching it off so it doesn't appear when I open up VFP.
>
>This is the last question today...honest.
>
>Pablo