Search found 1 match

by bwilson
13 Nov 2017 18:27
Forum: DOS Batch Forum
Topic: List services with wild card
Replies: 1
Views: 3171

List services with wild card

Is there a better way to script this? I am not getting the results expected:

Code: Select all

for %%x in ('sc query ^| find "Oracle*"') do (for %%g in (%%x) do (echo %%g >>tempfile.txt))