Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Technology


 
 
LinkBack Thread Tools
Old 12-30-2004, 02:56 PM   #1 (permalink)
Upright
 
Location: Ohio
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?
Melinith is offline  
Old 12-30-2004, 03:31 PM   #2 (permalink)
Tilted
 
Location: Salt Lake City
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."

Last edited by belkins; 12-30-2004 at 03:36 PM..
belkins is offline  
Old 12-30-2004, 03:35 PM   #3 (permalink)
Upright
 
Location: Ohio
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.)
Melinith is offline  
Old 12-30-2004, 03:37 PM   #4 (permalink)
Tilted
 
Location: Salt Lake City
Use the batch file above instead of VB script. It's easier!
belkins is offline  
Old 12-30-2004, 03:41 PM   #5 (permalink)
Upright
 
Location: Ohio
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.
Melinith is offline  
Old 12-30-2004, 03:51 PM   #6 (permalink)
Tilted
 
Location: Salt Lake City
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.
belkins is offline  
Old 12-30-2004, 03:59 PM   #7 (permalink)
Upright
 
Location: Ohio
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.

Last edited by Melinith; 12-30-2004 at 04:11 PM..
Melinith is offline  
Old 12-30-2004, 04:20 PM   #8 (permalink)
Tilted
 
Location: Salt Lake City
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.
belkins is offline  
Old 12-30-2004, 04:26 PM   #9 (permalink)
Upright
 
Location: Ohio
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.
Melinith is offline  
Old 12-30-2004, 04:35 PM   #10 (permalink)
Tilted
 
Location: Salt Lake City
Hmmm, let me try the VB script file instead.

I might not have it until tomorrow.
belkins is offline  
Old 12-30-2004, 04:39 PM   #11 (permalink)
Upright
 
Location: Ohio
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.
Melinith is offline  
Old 12-30-2004, 06:18 PM   #12 (permalink)
Pure Chewing Satisfaction
 
Moskie's Avatar
 
Location: can i use bbcode [i]here[/i]?
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...
__________________
Greetings and salutations.
Moskie is offline  
Old 12-31-2004, 09:14 PM   #13 (permalink)
Mine is an evil laugh
 
spindles's Avatar
 
Location: Sydney, Australia
Have a look at sleep.exe from here:
http://www.computerhope.com/dutil.htm
to momentarily pause the batch file.
__________________
who hid my keyboard's PANIC button?
spindles is offline  
 

Tags
batch, files, service, stopping


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 07:48 PM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, 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 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360