Put your app to run in autorun folder and in the load event you have the windows startup things and in querry unload event put it detects windows exit if unloadmode=vbAppWindows