Stringify text that contain quotes on studio

Hello

I am trying to make this a string but the quotes inside confuse UiPath

how can i keep the quotes inside and still have UiPath consider this a string

/c echo off & print "\server123\abc" “E:\Users\ZANAB\Documents\test.doc”

Hi @adext

Can you try the below way:

"/c echo off & print ""\server123\abc"" ""E:\Users\ZANAB\Documents\test.doc"""

Hope it helps!!

@adext

yourStringVariable = "/c echo off & print ""\\server123\abc"" ""E:\Users\ZANAB\Documents\test.doc"""

@adext

Basic rule…any double quote(") you want in astring should be escaped with another double quote("")

Cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.