I ask because I only need to do this once to connect to my network when my PC starts, so if I can make an .exe I'll be able to run a scheduled task to have it run whenever my computer starts. Thanks!
[R]Windows Services
Forum Index > General Forum |
neSix
United States1772 Posts
I ask because I only need to do this once to connect to my network when my PC starts, so if I can make an .exe I'll be able to run a scheduled task to have it run whenever my computer starts. Thanks! | ||
Hot77.iEy
Finland1486 Posts
| ||
![]()
pheer
5390 Posts
what that does it set the service to start automatically with windows. problem solved | ||
jacen
Austria3644 Posts
i am sure he already knows how to enable/disable them manually ... @ topic: no idea though. try microsoft support? i am sure they can help you .. if they answer at all. | ||
neSix
United States1772 Posts
On July 27 2006 22:16 jacen wrote: maybe he wants a "shortcut" to switch the service on or off? i am sure he already knows how to enable/disable them manually ... @ topic: no idea though. try microsoft support? i am sure they can help you .. if they answer at all. Correct! I already know how to turn it on and off, and when I have it set to automatic it reconfigures every... half-hour? or so, for like a minute, which is just long enough for me to get disconnected from my BW games. I've found that when I change the options to manual, and just start it when I boot up my computer, there are no more problems. I already tried microsoft support and didn't really find directions on how to design an executable for the Windows XP Services. I just need some code for a simple text-editor (like notepad) that will flip the WZC on whenever i run that code, so that I can schedule a task to run that .exe every time my machine turns on. That will solve all of my problems. :D | ||
Taiche
![]()
France1963 Posts
Open a console (Run -> cmd) and inside this console type : net start "Name of the service I want to start" Similarly, to stop the service : net stop "Name of the service" Therefore, you just need to create 2 .bat using Notepad : one that makes the net start and one that makes the net stop. Just remember that you need Administrato privileges to do that and you're good to go ![]() | ||
jacen
Austria3644 Posts
On July 28 2006 04:33 Taiche wrote: Yes, this is definitely possible. Open a console (Run -> cmd) and inside this console type : net start "Name of the service I want to start" Similarly, to stop the service : net stop "Name of the service" beats me didn't thought that it would be that easy ![]() | ||
neSix
United States1772 Posts
On July 28 2006 04:33 Taiche wrote: Yes, this is definitely possible. Open a console (Run -> cmd) and inside this console type : net start "Name of the service I want to start" Similarly, to stop the service : net stop "Name of the service" Therefore, you just need to create 2 .bat using Notepad : one that makes the net start and one that makes the net stop. Just remember that you need Administrato privileges to do that and you're good to go ![]() OK Thanks! This is what I was looking for and I really appreciate it... My problem is that I don't know how to write code for a .bat. If someone could post code that will do this for me, I'd REALLY appreciate it! Once I get my hands on code that will do that, I'll paste it into notepad and save it as a .bat. | ||
neSix
United States1772 Posts
I program C++ in school (I'm turning a senior this year), and if you know anything about C++ you need a million lines of code before even opening your main() function, so that's kind of what I expected this to be like. But instead I just experimented, and saved the two following files: start.bat net start wzcsvc stop.bat net stop wzcsvc to my desktop. Then, when I run the .bat files, it brings up the command prompt (I did a bit of searching on google to figure out exactly how they work, and they're just like an .exe except they run DOS commands, same with a .cmd extension file) and then enters the code inside the file into the command prompt. Thanks a lot!!! :DD You are my hero<3 | ||
| ||