A Forum all about DOS Batch
Skip to content
Go to advanced search
Code: Select all
for %%x in ('sc query ^| find "Oracle*"') do (for %%g in (%%x) do (echo %%g >>tempfile.txt))