Batch File

  • tomy3k_bakr
  • Newbie
  • Newbie
  • User avatar
  • Joined: May 20, 2004
  • Posts: 11
  • Status: Offline

Post May 23rd, 2004, 2:02 am

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 23rd, 2004, 2:02 am

  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Joined: Dec 29, 2003
  • Posts: 5169
  • Loc: SC-USA
  • Status: Offline

Post May 23rd, 2004, 3:54 am

Hey tomy3k_bakr!

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

//moved
- dM
  • DuckIT
  • Graduate
  • Graduate
  • User avatar
  • Joined: May 04, 2004
  • Posts: 155
  • Loc: London, UK
  • Status: Offline

Post May 24th, 2004, 5:15 am

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 207 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.