Batch File

  • tomy3k_bakr
  • Newbie
  • Newbie
  • User avatar
  • Posts: 11

Post 3+ Months Ago

Dear All,

I need to create a batch file that runs a group of windows services or stop them, instead of opening services manager & start them manualy, i don't need them to be started everytime i start my pc but when i need them.


thx, urs.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5149
  • Loc: SC-USA

Post 3+ Months Ago

Hey tomy3k_bakr!

I think this is more of a Windows question. :)

//moved
  • DuckIT
  • Graduate
  • Graduate
  • User avatar
  • Posts: 155
  • Loc: London, UK

Post 3+ Months Ago

Easy peasy!:

First you need the display name of the service in question. Do this by going into services manager. Open the service you need in the batch file then copy its display name. For instance I opened and copied my 'Automatic Updates' & 'DHCP Client' services.

Now create your batch file and use the service names in the following format:

Net stop "Automatic Updates"
Net stop "DHCP Client"

Net start "DHCP Client"
Net start "Automatic Updates"

or whatever.

Note you need the speech marks.

S

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 50 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.