Search found 2 matches

by aleb
23 Aug 2013 05:40
Forum: DOS Batch Forum
Topic: make an output appear in the same line
Replies: 3
Views: 4273

Re: make an output appear in the same line

you might try this: Code: @ECHO OFF &SETLOCAL ENABLEDELAYEDEXPANSION FOR /f "usebackqdelims=" %%a IN (`wmic service where 'startmode^="auto" and state^="stopped"' get name`) DO ( FOR /f %%b IN ("%%~a") DO ( SET /a counter+=1 IF !counter! gtr 1 SET "l...
by aleb
23 Aug 2013 00:40
Forum: DOS Batch Forum
Topic: make an output appear in the same line
Replies: 3
Views: 4273

make an output appear in the same line

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 VMAuth...