>I need to write the batch program which will run at the mid-night.
>The server is Win2000.
>1)If the Server restarts, How can I make the program restart by itself ?
>2)As the program starts, How can I place the icon in the right hand corner (Just like icq ??)
In order to have your program to auto launch, you need to define it as a service. As for putting an icon in the systray, with Visual FoxPro 8, there is a sample that describes it.