How to include "\" in a string through script

Umasankar Guth1
Tera Contributor

Hi Experts,

 

I have a scenario like I have a folder paths like below.

 

Example :

 

A:\Dev

B:\Test

A:\Test\Dev\Example

 

Here my scenario is if folder path is A:\Dev and A:\Test\Dev\Example mean if folder path matches exactly these 2 scenarios then based on folder patch I have to assign task to Groups.

 

Assignment part I can take care but when I am taking the values from folder path escape characters are getting removed (example returning A:Dev, "\" is missing)so task is not assigning to group.

 

Now I want to get the folder path exactly as a string value through script without escape characters.

 

Looking for solution.

 

Thanks & Regards

US

1 REPLY 1

Community Alums
Not applicable

Hey there,

depending on your scenario (from where you do this) you can try with \/ or ASCII directly  (instead of A:/folder  A:/folder OR A:\/folder )

JoroKlifov1_0-1675782382062.png