Steven,
Where does this DLL come from? Can you show a code fragment that causes the window to popup?
>I am send e-mail messages using the winstuff dll. I keep getting the FoxPro Run Command window popping up with "Bad command or file name" displayed in it. Sometimes the window will disappear by itself, sometimes I can close the window, and sometimes it locks up altogether. Sometimes one out of eight of the messages get sent, sometimes a couple, sometimes all eight, sometimes none. Is there a way to tell what exactly is going wrong?