Currently, I want a remote machine (Amazon EC2 instance) to run a batch file when the machine starts up, and the batch file will close the machine after finishing the tasks.
I tried to put the shortcut of batch file to the startup folder. However, it will be only ran when I use Remote Control Connection to Log in that machine.
So, any other way to solve this problem??? NOTE: I don't want to log in to that machine since there might be 10 remote machines running at the same time.
Any idea or thought is appreciated. Thanks a lot.