0

I have below string output

VDIR "WorkFlowWebApp/Test/" (physicalPath:D:\New folder (2))

Which i need to parse and get the physical path associated with it. In this case it is D:\New folder (2), so how can i get the physical path in a variable in batch script.

1 Answer 1

1
set "string=VDIR "WorkFlowWebApp/Test/" (physicalPath:D:\New folder (2))"
rem get relevant part:
set "physp=%string:*physicalPath:=%"
rem remove last char:
set "physp=%physp:~0,-1%"
echo %physp%
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.