Favarelaa
(Francisco Augusto Varela Aguirre)
October 21, 2023, 2:00pm
1
Im making an automtation that gets in to a specific folder and logs out the name of every file in there.
And I have two questions:
I saw a video that used a “For Each File in Folder”. But I cant find that activity in my UI Path. Is there any extention or somthing?
I did this this secuence, any idea of how to get the name of each file in the folder? Is there like a GetName or somthing like that?
1 Like
ppr
(Peter Preuss)
October 21, 2023, 2:11pm
2
give a try at
Path.GetFileName(currentItem)
2 Likes
lrtetala
(Lakshman Reddy)
October 21, 2023, 2:13pm
3
Hi @Favarelaa
Please try this
FileName with extension → Path.GetFileName(currentItem.ToString)
FileName without extension → Path.GetFileNameWithoutExtension(currentItem.ToString)
2 Likes
Parvathy
(PS Parvathy)
October 21, 2023, 2:16pm
4
Hi @Favarelaa
Make sure you have UiPath.System.Activities installed in your project. If you still can’t find the activity upgrade the package to the latest version and search for the activity.
Hope it helps!!
2 Likes
system
(system)
Closed
October 24, 2023, 2:17pm
5
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.