Ok, so now I've got your attention.
I need a routine that will allow me to run another application and detect when it has finished loading.

I don't meen using the shell command I meen 32Bit Windows applications.

I don't even know if this is possible, anyone got any ideas?