View previous topic :: View next topic |
Author |
Message |
oryagel
Joined: 28 Jul 2010 Posts: 92
|
Posted: Wed Oct 01, 2014 12:32 am Post subject: Double Quotes in Script Parameter |
|
|
Hi,
I'm trying to pass a parameter that includes quotes to a powershell script.
So basically the params line looks something like that:
Code: | 10 20 '(abc),"7d",(def)' |
I need the third parameter to be
but it seems like it's turned to without the double quotes.
What should I do?
Thanks |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Wed Oct 01, 2014 2:47 am Post subject: |
|
|
You need to use backslash( \ ) symbol before each double quote:
Code: | 10 20 '(abc),\"7d\",(def)' |
|
|
Back to top |
|
|
oryagel
Joined: 28 Jul 2010 Posts: 92
|
Posted: Wed Oct 01, 2014 2:50 am Post subject: |
|
|
Great! Thanks!
I should have tried it myself. |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Wed Oct 01, 2014 3:16 am Post subject: |
|
|
You are welcome! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|