2

I am new new to batch scripting. Need some help to extract string value from the below string:

value=string_value (character)  

Required Output: string_value

2
  • There are different ways to do it that depend on the actual format of the text. Commented Mar 1, 2014 at 18:02
  • For example Matt's solution would have failed if your string_value contained a space. Commented Mar 2, 2014 at 12:41

1 Answer 1

1

Try this:

for /f "tokens=2 delims== " %%a in ("value=string_value (character)") do echo %%a
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.