I have a program located here:
c:\Program\test.exe
THe last thiing the program does is to reboot the computer. However, I have another program test2.exe. Before the computer shuts down I want test.exe to be deleted. Also, test2.exe shall take the place of test.exe, that is, the same directory and the name shall change to test.exe.
Is there some runonce thing I can use in Windows for this matter ?