How do I copy a file if the path is for instance? “\Aasv081\ml_17576$\TMP\nezivot.xml”
Because the UiPath error window shows: Copy file : Illegal characters in path.
Moreover, the strange thing is that when I use the path as fixed value it is working, but when I use it as an variable, this error pops up.
is there any other way? I need the path to stay the same, I cannot really replace characters in the path as I wont get the exact file I am looking for. Please help.
System.Text.RegularExpressions.Regex.Replace(unCleanString, ”[/:*?“”<>|]“, string.Empty).Trim() If you use the expression, you can remove illegal characters in that data.