make an output appear in the same line
Posted: 23 Aug 2013 00:40
hi all,
I made a very easy script which returns the name of the services configured as auto but actually stopped.
script:
@echo off
wmic service where 'startmode="auto" and state="stopped"' get name
The problem is that the output I receive is like this:
Name
gupdate
sppsvc
VMAuthdService
And I would like it to appear this way(without the "Name" title):
gupdate sppsvc VMAuthdService
is it possible? thanks
I made a very easy script which returns the name of the services configured as auto but actually stopped.
script:
@echo off
wmic service where 'startmode="auto" and state="stopped"' get name
The problem is that the output I receive is like this:
Name
gupdate
sppsvc
VMAuthdService
And I would like it to appear this way(without the "Name" title):
gupdate sppsvc VMAuthdService
is it possible? thanks