Iíd like for this command to go through the file and spit out the name of services that are set to AUTO_START, but it tells me every service name, and after the ones with AUTO_START, itíll output the findstr results.
Code:
stisvc
SwPrv
SysmonLog
TlntSvr
        START_TYPE         : 2   AUTO_START
upnphost
UPS
VSS
I'd like for it to look like this...
Code:
TlntSvr
This is the command I'm running...
Code:
for /f %i in (services.txt) do sc qc %i | findstr ďAUTO_STARTĒ & echo %i
(Services.txt contains simple list of services.)

What Iím doing isnít working and Iíve hit a wall. I was thinking I might be able to use an IF statement in conjunction with the FOR, but haven't been able to find anything on doing that.

Iíd appreciate any help.