Starting and Stopping Services

G

Gene E. Bloch

Thanks for the follow-up to confirm your success. Glad it's working
for you!
And thanks to all of you for an idea that may have further implications
- Acronis & iTunes can't be the only programs that do that.
 
J

Jason

I've found start always produces black screen. And the black screen
REMAINS open even when I have NOT specified /wait. Infact this black
screen stays open when I used just the command name without start
 
S

Stan Brown

I've found start always produces black screen. And the black screen
REMAINS open even when I have NOT specified /wait. Infact this black
screen stays open when I used just the command name without start
If by "black screen" you mean a command prompt, that is not happening
for me.
 
S

Stan Brown

And thanks to all of you for an idea that may have further implications
- Acronis & iTunes can't be the only programs that do that.
Indeed not!

I've just given iTunes the same treatment, and there turn out to be
different wrinkles from Acronis. Here's the necessary batch file for
iTunes:
------------------------------------------------------------
setlocal disableextensions
sc config "iPod Service" start= demand
net start "iPod Service"
start "iTunes" /wait "C:\Program Files (x86)\iTunes\iTunes.exe"
net stop "iPod Service"
sc config "iPod Service" start= disabled
endlocal
------------------------------------------------------------
It turns out that if iPod Service isn't started, iTunes starts it --
but fails to stop it when exiting. So you actually have to disable
the service in Services.msc. But then "net start" can't start it, so
you have to use "sc config" to change it from disabled to manual and
*then* start it. Whew!

By the way, note the fun syntax: "start= demand", not "start=demand".

I'm working on a Web page that explains all this and gives the batch
files for iTunes and Acronis. It should be done this weekend, and
I'll post the URL here when the page is ready.
 
S

Stan Brown

I'm working on a Web page that explains all this and gives the batch
files for iTunes and Acronis. It should be done this weekend, and
I'll post the URL here when the page is ready.
It's done, and the URL is
http://oakroadsystems.com/tech/7service.htm

I went into a lot of detail about just why the various features of
the batch files had to be how they are.
 
B

Big_Kev

Thanks Stan for the Acronis True Image Example. I wonder if you have
any plans to do the same for: Apache WebServer, MySQL amd Microsoft SQL
Express services? I run these when I am developing AfterBurner,
DreamPortal, Drupal, Joomla, Magento, MediaWiki, MoveableType, PhpBB,
SMF, Tiki, VBulletin, and WordPress, but I don't need them all the time.

Thanks for any help you can give.
 
S

Stan Brown

Thanks Stan for the Acronis True Image Example. I wonder if you
have any plans to do the same for: Apache WebServer,
I corrected your upside-down posting.

What sort of trouble are you having with Apache? I wasn't aware that
it installs any services, though I haven't installed it on my 64-bit
Win 7 system yet.
 
N

Nil

What sort of trouble are you having with Apache? I wasn't aware
that it installs any services, though I haven't installed it on my
64-bit Win 7 system yet.
Apache has always installed as a service, unless you choose to install
it as a console application.
 
S

Stan Brown

Apache has always installed as a service, unless you choose to install
it as a console application.
Wow -- I never knew that. When I last installed it, several years
ago, I installed it as a console application and in the subsequent
time I guess I forgot there was any other option.

It's one of the things I haven't yet installed on my "new" (June
2010) Win 7 machine.

But in that case I wish even more that the PP would explain his query
more. If he's got installed as a service, then my approach to
*applications* iTunes and Acronis would seem to be irrelevant for
him.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top