SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Double quotes

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Double quotes
Author Message
rhubman16



Joined: 08 Mar 2016
Posts: 41

Post Double quotes Reply with quote
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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6506

Post Reply with quote
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 View user's profile Send private message
rhubman16



Joined: 08 Mar 2016
Posts: 41

Post Reply with quote
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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6506

Post Reply with quote
Code:
concat (variable, "\"c:\\program files\\blah\lblah.exe\" \"use\" \"these\" \"switches\"", variable)


Hope this helps
Wed Nov 09, 2016 3:20 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
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
Design by Freestyle XL / Flowers Online.