Running batch programs


Go Back   Computer Help Articles > Windows XP Basics
User Name
Password
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-05-2006, 02:02 AM
James T. Kirk
 
Posts: n/a
Default Running batch programs

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)


Reply With Quote
  #2  
Old 01-05-2006, 02:02 AM
Shenan Stanley
 
Posts: n/a
Default Re: Running batch programs

James T. Kirk wrote:
> 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"

--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html


Reply With Quote
  #3  
Old 01-05-2006, 02:02 AM
CWatters
 
Posts: n/a
Default Re: Running batch programs


"James T. Kirk" <kirk@enterprise.com> wrote in message
news:%230n5m5k6FHA.4012@TK2MSFTNGP14.phx.gbl...
> 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?




Reply With Quote
  #4  
Old 01-05-2006, 02:02 AM
James T. Kirk
 
Posts: n/a
Default Re: Running batch programs

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.

"CWatters" <colin.watters@pandoraBOX.be> wrote in message
news:fyCef.49844$ZL7.2552928@phobos.telenet-ops.be...
>
> "James T. Kirk" <kirk@enterprise.com> wrote in message
> news:%230n5m5k6FHA.4012@TK2MSFTNGP14.phx.gbl...
>> 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?
>
>
>
>



Reply With Quote
  #5  
Old 01-05-2006, 02:02 AM
GTS
 
Posts: n/a
Default Re: Running batch programs

I suspect it may be a question of rights. The task needs to run as an
administrator. See
How To Troubleshoot Scheduled Tasks in Windows XP
http://support.microsoft.com/default...b;en-us;308558
and
How to Automate Disk Defragmenter Using Task Scheduler Tool in Windows XP
(for an example re. user/admin issue)
http://support.microsoft.com/default...b;en-us;555098
--

"James T. Kirk" <kirk@enterprise.com> wrote in message
news:%230n5m5k6FHA.4012@TK2MSFTNGP14.phx.gbl...
>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)
>



Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Too many programs running officer Windows XP Customize 10 01-05-2006 06:37 AM
Programs running in the background Steve Windows XP Perform Maintain 3 01-05-2006 05:59 AM
how to find and close running programs zsa zsa Windows XP New Users 1 01-05-2006 04:00 AM
Way to many programs running under my task manager help bulens04 Windows XP Help and Support 2 01-05-2006 02:39 AM
Have results from Hijackthis. Don't understand them!!! 1st half StanStan Windows XP General 15 01-05-2006 02:36 AM


All times are GMT. The time now is 06:11 PM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. SEO by vBSEO 2.3.2 © 2005, Crawlability, Inc.

Running batch programs