 |
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
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 |
|
 |
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
 |
 |
concat (variable, "\"c:\\program files\\blah\lblah.exe\" \"use\" \"these\" \"switches\"", variable)
|
Hope this helps
|
|
Wed Nov 09, 2016 3:20 pm |
|
 |
|
|
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
|
|
|