Split a Path String

Hello!

I would like to split a string containing different folder paths. I have them separated in with a “;”. Ideally, I would like to split the whole string into substrings and then, put them inside an array, so I can search in it later.

Here is an example of the string:

D:\RPA_Deloitte\IG_002_OP_Liquidaciones\9_Intermedio\2023\febrero\06\00055301;D:\RPA_Deloitte\IG_002_OP_Liquidaciones\9_Intermedio\2023\febrero\06\00055302

yourString.Split(";"c) will provide you an array of all substrings.

1 Like

@Alejandro_Vega_Romero ,

An Alternate :

filePathsArray = Split("Your String Value",";").ToArray

Here, filePathsArray is a Array of String type variable.

1 Like

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