Hi Dan,
I would add
MODIFY COMMAND _command.txt
to visualy verify that command window contents was saved.
>Thanks for the help.
>
>
>>>Does anyone know how to force FoxPro to save the contents of the command window without having to quit FoxPro?
>>>
>>>Thanks,
>>>Dan
>>
>>I don't know how to force foxpro but I know how to ask it nicely to save the contents of the command window to the file :)
>>ON KEY LABEL f9 do SaveCW
>>
>>* PROCEDURE SaveCW
>>keyboard "{CTRL+f2}{Ctrl+A}{pause .1}{Ctrl+C}{Ctrl+END}"
>>STRTOFILE(_cliptext, "_command.txt")
>>ENDPROC
>>
--sb--