Thanks to everyone who posted their help here last week when I was having problems with Error 53. It turned out that if the program being run by the VB app was located in a path the was greater than 50 chars, then it was being truncated, and so resulted in error 53 when I used the shell command.(Doh!)

I wonder if I could pick your brains once more?

I want to close the VB app as soon as it starts another program, but I don't want the program that's just started, to lose Focus. If the program that is being started by the VB app is run in a window, then there is no problem, as the focus is returned to it as soon as the VB app closes. The problem is if a program uses full screen mode (like quake or something) then the screen goes blank as it starts up, then goes back to windows as the VB app closes, and then just stays in the windows environment. I know that I only have to click the button in the windows taskbar to go back to the program running in the background, but is there any way to avoid the focus being taken from the running prog, even when closing down the VB app? (phew)

Any help appreciated.

Cheers,
Mr SlimShady