Running batch programs

  • Thread starter Thread starter James T. Kirk
  • Start date Start date
J

James T. Kirk

I wonder if someone can shed some light on my problem.
I have Windows XP MCE 2005 and SP2. I also have a Hauppauge 250 turner
card. The Hauppauge tuner card will not run if the MCE receiver service is
running. (I found this thanks to a newsgroup item). If I stop the MCE
receiver service by running the NET STOP command then, the tuner works.
So, I created a scheduled job to run the NET STOP command at 7:00pm. I have
the tuner scheduled to record at 8:00pm. When I check, the tuner has
failed. If I then just manually run the NET STOP command then the tuner
will work.
Any suggestions why running a batch command as a scheduled job does not seem
to work? I added an echo statement in my batch command and it shows the NET
STOP is running at the right time.

Thanks (hope all this makes sense)
 
James said:
I wonder if someone can shed some light on my problem.
I have Windows XP MCE 2005 and SP2. I also have a Hauppauge 250
turner card. The Hauppauge tuner card will not run if the MCE
receiver service is running. (I found this thanks to a newsgroup
item). If I stop the MCE receiver service by running the NET STOP
command then, the tuner works. So, I created a scheduled job to run the
NET STOP command at 7:00pm. I have the tuner scheduled to record at
8:00pm. When I check, the
tuner has failed. If I then just manually run the NET STOP command
then the tuner will work.
Any suggestions why running a batch command as a scheduled job does
not seem to work? I added an echo statement in my batch command and
it shows the NET STOP is running at the right time.

Thanks (hope all this makes sense)

Under whose rights is the scheduled job running?
Is that user LOGGED in at the time?
Does a batch script alone work?
Putting quotes around the service name?

net stop "Help and Support"
net start "Help and Support"
 
James T. Kirk said:
I wonder if someone can shed some light on my problem.
I have Windows XP MCE 2005 and SP2. I also have a Hauppauge 250 turner
card. The Hauppauge tuner card will not run if the MCE receiver service is
running. (I found this thanks to a newsgroup item). If I stop the MCE
receiver service by running the NET STOP command then, the tuner works.
So, I created a scheduled job to run the NET STOP command at 7:00pm. I have
the tuner scheduled to record at 8:00pm. When I check, the tuner has
failed. If I then just manually run the NET STOP command then the tuner
will work.
Any suggestions why running a batch command as a scheduled job does not seem
to work? I added an echo statement in my batch command and it shows the NET
STOP is running at the right time.

Thanks (hope all this makes sense)

Not sure if this is the cause but....

I believe that if you start a program from a command file then control
passes to that program and isn't returned to the command file until the
program finishes. This means any subsequent commands in the command file may
not be executed until then.

Do you have anything in the command file before the NET STOP?

Do the event logs give any clues?
 
The batch file has some ECHO statements to show progress. The second last
line is the NET STOP ehrecvr. The last line is an ECHO that emits a message
and date/time to an outfile. When I check it, I see that it has run at the
correct date/time. If I go to the DOS command window and run the batch
file, then all is well. It only fails when the batch file is executed as a
scheduled job.

I will try enclosing the service in quotes as indicated in a previous reply.
As well, I will remove all statements except the NET STOP, and I will check
the event logs.

Thanks to all.
 
Back
Top