Tilted Forum Project Discussion Community

Tilted Forum Project Discussion Community (https://thetfp.com/tfp/)
-   Tilted Technology (https://thetfp.com/tfp/tilted-technology/)
-   -   Stopping a Service with batch files? (Xp) (https://thetfp.com/tfp/tilted-technology/79823-stopping-service-batch-files-xp.html)

Melinith 12-30-2004 02:56 PM

Stopping a Service with batch files? (Xp)
 
I recently upgraded to Windows XP with a new knowledge that my (wireless) dwl-120 was a compatible version with it.
However im an avid gamer and right now my virtual life is spent bouncing around on World of Warcraft. After finishing the install and updates etc. etc. I found an extremely annoying problem. The service 'Wireless Zero Configuration' that searches for availble wirless networks every few moments creates unwanted lag. Simple enough problem to fix, just stop the service.

When I reboot the computer I have to have this service run inorder to find my own network, but ive got to turn it off after it finds it to stop my game lag. So (finally) I get to my question. Is there a way that I could have a batch file run that turns this service off after 5-10 seconds?

belkins 12-30-2004 03:31 PM

Stick the following line in a batch file, put it on your desktop and double click it when you want to stop it.

net stop wzcsvc

If you want to restart it just put the following in another batch file:

net start wzcsvc

The word wzcsvc stands for "Wireless Zero Configuration Service."

Melinith 12-30-2004 03:35 PM

:) Thanks it would be much appreciated. Im new to the batch file thing...ive never really had a reason to mess with it. I found out how to stop the service in a batch.

Taskkill /F /FI "SERVICES eq WZCSVC"

But im sure if your vb works ill just use that. I wouldnt mind knowing for my own knowledge though how to do this....anyone know how to make it wait 5-10 seconds? Without using Pause (which just waits for the user to hit a button.)

belkins 12-30-2004 03:37 PM

Use the batch file above instead of VB script. It's easier!

Melinith 12-30-2004 03:41 PM

We posted at the same time so I didnt see that :P.
I will use that as its cleaner.

Wouldnt happen to know if there is a timing command do you? So that it would do it automatically.

visual example:

/wait 8 seconds
net stop wzcsvc

or something to that effect.

belkins 12-30-2004 03:51 PM

You will have to find a pre 2000 machine to copy the command CHOICE.EXE from in order to get this to work, but the following will work:

choice /T:Y,10 /N
net stop wzcsvc

This will cause the batch file to wait 10 seconds to execute the next line once the batch file itself has been executed.

Melinith 12-30-2004 03:59 PM

Thanks for all of your help, its much appreciated.
The last thing I have a question about is...where can I find Choice.exe and where do i put it?

I have windows 98 on my moms computer in the other room.
*edit* nevermind I found it. (Windows\Command\Choice.com)

^ Thats where I found it...and i put it in Windows\System32..as thats where all the other commands are. However when it type choice in command prompt i get a 16 ms-dos subsystem error.

belkins 12-30-2004 04:20 PM

Try right clicking on the file, choice.exe, and select compatibility mode and set it to Windows 95/98 and let me know what happens.

Melinith 12-30-2004 04:26 PM

Same error:
16 bit ms-dos subsystem
C:\Windows\system32\cmd.exe - choic
The ntvdm cpu has encountered an illegal instruction.
CS: 0537 IP: 0a86 OP:63 72 6f 73 6f..

close ~~ ignore.
_______

Thats the error as it reads.

belkins 12-30-2004 04:35 PM

Hmmm, let me try the VB script file instead.

I might not have it until tomorrow.

Melinith 12-30-2004 04:39 PM

Quote:

Originally Posted by belkins
Hmmm, let me try the VB script file instead.

I might not have it until tomorrow.


Nah. Dont worry about that, youve helped me enough as it is. I dont need the timer that bad, I can just click it after my computers started up and 10 seconds have passed...its much easier than going into services and shutting it off manually that way. Thanks for all of your help.

Moskie 12-30-2004 06:18 PM

you could also make a batch file that runs the command to stop the service, then launches your game... unless you're committed to having this done as soon as it can...

spindles 12-31-2004 09:14 PM

Have a look at sleep.exe from here:
http://www.computerhope.com/dutil.htm
to momentarily pause the batch file.


All times are GMT -8. The time now is 06:47 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73