WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Help with scripting

 
   Home -> Windows Other -> File System RSS
Next:  iis help  
Author Message
slawal

External


Since: Oct 18, 2006
Posts: 2



(Msg. 1) Posted: Tue Mar 18, 2008 9:03 am
Post subject: Help with scripting
Archived from groups: microsoft>public>win2000>file_system (more info?)

I am trying to query for services that start with TSM xxxx then stop the
services in the start state without have to write a net stop for every TSM
service. After which I will find the ones in a stopping state and use
taskkill to end the task and I am having problem accomplishing this task. I
am not a scripting guy and I need any help i can get with this
Back to top
Login to vote
"Pegasus

External


Since: Dec 22, 2007
Posts: 435



(Msg. 2) Posted: Tue Mar 18, 2008 5:28 pm
Post subject: Re: Help with scripting [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"slawal" <slawal DeleteThis @discussions.microsoft.com> wrote in message
news:CDAC3E4A-2CB1-4751-8DB4-8E05931E0AB1@microsoft.com...
>I am trying to query for services that start with TSM xxxx then stop the
> services in the start state without have to write a net stop for every TSM
> service. After which I will find the ones in a stopping state and use
> taskkill to end the task and I am having problem accomplishing this task.
> I
> am not a scripting guy and I need any help i can get with this

Try this:
@echo off
for /F "tokens=*" %%* in ('net start ^| find /i "TSM"') do echo net stop
"%%*"

Please note:
- You must remove the word "echo" in the second line to activate
the batch file.
- You cannot use taskkill.exe to end a service. Taskkill will only
kill tasks.
Back to top
Login to vote
Display posts from previous:   
       Home -> Windows Other -> File System All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
  Windows Other
 Office
 Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support