![]() |
|
![]() |
AutoMate Discussion | ![]() |
Topic Title: Join string literal with contents of variable Topic Summary: Created On: 01/05/2018 03:33 PM Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
||||||||||
Hi all... sorry in advance if this has been asked...and answered a thousand times already. I didn't find it though, so I'm asking.
I am extracting some information from one string storing it in %variablefoldername%, and need to use that information to form part of a file path. I have a leading literal string, then the contents of the variable, then another literal, that need to be joined to a single string. What I have is: "\\unc\folder1\folder2\" %variablefoldername% "\lastfolder" I need to join them to a single string like: "\\unc\folder1\folder2\<variablefoldername>\lastfolder" Any help would be GREATLY appreciated!! Thanks!!!
|
||||||||||
|
||||||||||
![]() |
||||||||||
Hello,
You can concatenate variables using "&". I have added sample code to this post. i.e. %varLiteral1 & varNew & varLiteral2% Let us know if this works for you.
Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder) ------------------------- ![]() Ricardo Castaneda | Principal Support Analyst AutoMate | Division of HelpSystems HelpSystems, LLC | T: +1.213.738.1700 |
||||||||||
|
||||||||||
![]() |
||||||||||
Hello. Does that work for writing out a file? I have code like this and it keeps saying invalid AML (near the end of the line)
Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder) Edited: 07/12/2018 at 10:39 AM by AutoMate Discussion Moderator |
||||||||||
|
||||||||||
![]() |
||||||||||
What version of Automate are you running? The .aml code you have provided will not work in v7.
------------------------- ![]() Leonard Amabile | Director, Cross Platform Support AutoMate | InterMapper | Skybot | Divisions of HelpSystems T: +1.213.738.1700 | F: +1.213.738.7665 |
||||||||||
|
||||||||||
![]() |
||||||||||
11.0.6.11, sorry
|
||||||||||
|
||||||||||
![]() |
||||||||||
When editing AML directly, one has to be careful, please paste your text into the editor rather than editing AML directly when not sure and it will work. All XML special characters need to be escaped, so try the following and it will work.
Good luck.
Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder) ------------------------- Thank you for choosing AutoMate Hamid Noorbakhsh | Senior Software Engineer AutoMate | A Division of HelpSystems HelpSystems, LLC | T: +1.213.738.1700 Edited: 07/13/2018 at 09:20 AM by Hamid Noorbakhsh |
||||||||||
|
||||||||||
![]() |
||||||||||
That works! Thank you, I appreciate it.
|
||||||||||
|
FuseTalk Enterprise Edition v4.0 - © 1999-2021 FuseTalk Inc. All rights reserved.