![SoftTree Technologies](templates/GreenTech/images/logo.gif) |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
rhubman16
Joined: 08 Mar 2016 Posts: 41
|
|
Double quotes |
|
I am trying to build a command line command and put it into a variable. I need to have quotes around a part of the command.
How can I add a " using the concat command?
Thank you
|
|
Wed Nov 09, 2016 12:32 pm |
|
![](templates/GreenTech/images/spacer.gif) |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7849
|
|
|
|
JavaScript and JAL scripts: use \ symbol to escape double quotes and other special symbols, that includes regular \ too.
Shell/batch scripts: Tho depends on the target environment and scripting dialect.
|
|
Wed Nov 09, 2016 12:36 pm |
|
![](templates/GreenTech/images/spacer.gif) |
rhubman16
Joined: 08 Mar 2016 Posts: 41
|
|
|
|
Could you give me an example?
If do something like
concat (variable, "c:\program files\blah\blah.exe use these switches", variable)
and I want use these switches in double quotes
|
|
Wed Nov 09, 2016 1:40 pm |
|
![](templates/GreenTech/images/spacer.gif) |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7849
|
|
|
|
![](templates/GreenTech/images/code_header.gif) |
![](templates/GreenTech/images/spacer.gif) |
concat (variable, "\"c:\\program files\\blah\lblah.exe\" \"use\" \"these\" \"switches\"", variable)
|
Hope this helps
|
|
Wed Nov 09, 2016 3:20 pm |
|
![](templates/GreenTech/images/spacer.gif) |
|
|
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
|
|
|