Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
auto service restart
Name: pap0007 Date: November 29, 2004 at 13:55:30 Pacific OS: windows xp CPU/Ram: athlon1900+, 512DDR
Comment:
hello
is there a way to reset a service automatically? like a batch file or a scheduled task?
i know there is a program to reset IIS automatically called iisreset, but is there a way to reset any service??
Name: dannyboy Date: December 2, 2004 at 08:42:07 Pacific
Reply:
Hi Kevin
Couldn't you just create a batch file using the net stop/net start commands and service name (in quotes)?
e.g.
net stop "print spooler" net start "print spooler"
Works for me ;o)
0
Response Number 2
Name: pap0007 Date: December 2, 2004 at 13:32:54 Pacific
Reply:
thanks dannyboy- that was quite helpful.
let me ask another question- do you know how to add a scheduled task through a batch file?
thanks again
Kevin
0
Response Number 3
Name: dannyboy Date: December 3, 2004 at 08:54:47 Pacific
Reply:
Sure, just go to Scheduled Tasks in Control Panel, Add Scheduled Task, then just go through the wizard.
You have to point it to your batch file (I usually save them to the root of c:\ so I can find them easily) then just schedule it - you can schedule it as a one-off, or for specific days, etc.
Summary: Hi, We have 2 versions of test machines, 1 with Crystal Enterprise 10 and Oracle 9 installed and another with Crystal Enterprise 10 and MS SQL 2000 installed. On the Crystal with MS SQL 2000 test mach...
Summary: Service Pack 1 install via MS Auto Update Restarts get Blue Death screen: "Fatal System Error c000021a The non-dll file included in knowndll System process terminated unexpectedly with status of 0xc0...
Summary: Under Services, IISadmin, Recovery tab - you can select under First Failure - Run a file and when you choose this open the file name below appears in the File box. When the webserver hangs, it execute...