Hello,
I need to pass an argument to my start process activity but it recognizes the argument (a string with three words) like three arguments. How can I write quotation marks in UiPath?
Thanks
Hi,
Maybe is not the best solution, but it works⌠I can write quotation marks with Chr(34) function.
Example:
Chr(34) + myStringVariable + Chr(34)
If your 3 arguments do not contain spaces then you can just write them separated by space like âarg1 arg2 arg3â.
If your arguments may contain spaces then youâll need to put them between double quotes and you also should double the double quote.
Example
"arg1 ââarg 2"â arg3â
the second argument contains a space
Your solution is OK too.
I know this is an old answer but Iâm trying to do something similar passing a filename into open process and the filename has a space. Adrian, I think you missed the point of Susanaâs question. She has one argument with three words not three arguments. But using your double quotes idea didnât work with open process, neither did assigning the file name to a string variable then surrounding it with chr(34).
You can always create a bat file, in which you just type your run path and arguments as normal syntax, end it with an âexitâ and run this bat using the âstart processâ activity.
with chr(91) and chr(93) doesnât work
TKS!!! it´s safe me!
I did like this: used Type Into as mentioned above then in Text field added Chr(34)+â11.jpgâ+Chr(34)+" "+ Chr(34)+â22.jpgâ+Chr(34)+ â[k(enter)]â filename 11.jpg and 22.jpg and I sent enter hot key