I'm running Windows 7 64 bit Home Premium.
My new internet connection is a bit buggy, and I need to keep reconnecting. To make sure my computer keeps connected while I'm away, I created a script that reconnects every 30 minutes. Since it runs constantly, I wanted to make it run hidden, and found a working way: solution 1 on this answer.
However, without the command window, I'm not sure how to go about stopping the script when I need to. What I'm doing is looking up the cmd.exe process in the task manager and stop it, but I keep wondering: Is this a good way? Is there a better, more direct way, that doesn't require the task manager?