Answer the question
In order to leave comments, you need to log in
Findstr and substring in cmd or how to get part of string?
There is a command that produces information in the format:
cluster : 1234asdf-a12f-451d-a1b1-0123456abc78
host : hostname
rac.exe cluster list | findstr "cluster"
Answer the question
In order to leave comments, you need to log in
how to get part of a string?
SET
FOR /f "tokens=1" %%i IN ('rac.exe cluster list | findstr "cluster"') DO
and process %%i
further.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question