How to include space between double quotes

How to include space between double quotes

I have a file path like below :

filepath = “xxxx\Data\SFG files\abctest.xlsx”

Uipath is not taking the spce between SFG files and is treating the above filepath as 2 seperate files.

How can i make uipath take the filepath as whole including the space ?

Hi

May be concatenate and try like this

Str_filepath = “xxxx\Data\SFG” + “ “ + “files\abctest.xlsx”

But I would like to suggest you that including a space in file is not recommendable

Instead use a underscore like this

xxxx\Data\SFG_files\abctest.xlsx”

Cheers @Sumit_Ghosh1

Not working. Still talking 2 different filepaths.

It is predefined in our system application. Hence need to use the same path with space.

Fine try mentioning the full path and not relative path

That is get the filepath from root folder

@Sumit_Ghosh1

What activity are you using that filepath string for?

A string is a string, a collection of characters no mather how you build it, and a space is a character… (concatenated or not).
So it is the activity or command that determines if it is a file or two, and the solution should be sought there. (What escape character to use, etc)

I know that some command line parameters on some programs require filename parameters that contain spaces to be surrounded by quotes themselves.

You can achieve this with assign activities by using triple-double quotes…

assign filePath = “”“c:\my documents\my filename.xlsx”“”

  • outer quotes: the regular string quotes
  • the second (middle one) as an escape character for…
  • the third, the inner quotes which will then be considered a content character instead of a functional string delimiter.

and the same sequence outwards again of course…