gorby
(gorby)
1
こんにちは。UiPath Studio EnterPrise版23.4.2ユーザの初心者です。
下記のファイル名フルパスからサブフォルダ名「設計ドキュメント」を抽出したいがどうすれば良いでしょうか?
System.IO.Path.GetDirectoryName(“ファイル名フルパス”)を実行するだけではダメなことは理解しています。
良いアイデアがあればご教示ください。
ファイル名フルパス
C:\Users\aaaaa\bbbbbb\ドキュメント\UiPath\設計ドキュメント\役に立つUiPath構文.xlsx
mkankatala
(Mahesh Kankatala)
2
Hi @gorby
For this you have to use the regular expressions to get the Subfolder of Filename
- Assign -> FilePath = "C:\Users\aaaaa\bbbbbb\Documents\UiPath\Design Documents\Useful UiPath Syntax.xlsx"
- Assign -> SubFolder = System.Text.RegularExpressions.Regex.Match(FilePath.ToString,“(\w+\s+\w+\s*\w*(?=\\[\S]))”).value
Hope it helps!!
Parvathy
(PS Parvathy)
3
Hi @gorby
Try this:
FilePath= "C:\Users\aaaaa\bbbbbb\documentation\UiPath\design document\useful UiPath syntax.xlsx"
output= Split(FilePath,"\"c)(6)
Hope it helps!!
system
(system)
Closed
4
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.