i have a batch file which runs some automated tasks, and as part of these, it runs an application, then uses pskill (process kill) to close the application. this is because there is no automated way of closing it. it runs in the system tray and to manually close it i would have to right click on it and click exit. however cause of this way of closing it, the icon is left in the system tray of the application and when i move the mouse over it, it disappears just as u would imagine.
however i want a program or some way of refreshing the system tray icons, so these "dead" icons dont hang about.
alternatively, a way to close the application in the system tray automatically from a batch file would be useful!
i'm using Windows 2000 Server SP4.
i know about making any application a service and i dont wanna do that with this one.
any suggestions appreciated.