0

How do I pass double quotes as a parameter in powershell? For example, I need to execute this line but K="Key words" has to be in double quote

$Ie.Navigate2("http://inside.nv.com/demo/Search/Pages/results_Table.aspx?k="Boiling Point"(CreatedBy:Broussard AND Write>=6/1/2015 AND Write<=6/30/2015)", 0x10000)
1

2 Answers 2

2

Try to escape the " which is part of the parameter string with

`

so, in your case it will be like below -

$Ie.Navigate2("http://inside.nv.com/demo/Search/Pages/results_Table.aspx?k=`"Boiling Point`"(CreatedBy:Broussard AND Write>=6/1/2015 AND Write<=6/30/2015)", 0x10000)
Sign up to request clarification or add additional context in comments.

Comments

1

Use encoding. The (") character would correspond to %22.

https://en.wikipedia.org/wiki/Percent-encoding

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.