Get a list of files from a Directory using UiPath Studio

0 votes

Hi all, I am looking to get a list of documents within a specific directory Directory.GetFiles(“address”). This is giving me the complete file name but cannot figure out how to get this broken down to the individual document names.

Nov 5, 2019 in RPA by Apeksha
• 1,110 points
8,383 views

1 answer to this question.

0 votes

Hey Apeksha, you can try following pseudo code to resolve your issue:

for each item in directory.getfiles()
myFileInfoVar = new FileInfo(item.toString)
messagebox myFileInfoVar.Name

image

Also, in the message box you must put test.Name (instead of test.toString). This property returns only the file name.

Let me know if this worked.

answered Nov 5, 2019 by Abha
• 28,140 points

Related Questions In RPA

0 votes
1 answer

How to extract specific type of files from a directory using UiPath?

Hey @Avani, if you want to extract ...READ MORE

answered Mar 14, 2019 in RPA by Anvi
• 14,150 points
9,531 views
+1 vote
0 answers

UIPATH Rpa : I am trying to validate from a open browser using Get Text or Element Exist

Create a Read Range. Added a for Each ...READ MORE

Dec 5, 2019 in RPA by anonymous
• 130 points
2,895 views
0 votes
1 answer

Robot Manager in UiPath

the robot.exe file is located in: C:\Users\USER_ACCOUNT\AppData\Local\UiPath\app-17.1.6523\Ui-Robot.exe Hope it ...READ MORE

answered Apr 17, 2018 in RPA by wrecker
• 3,110 points
1,605 views
0 votes
1 answer

Automation in Uipath

you can use the Database package for connecting  ...READ MORE

answered Apr 17, 2018 in RPA by wrecker
• 3,110 points
1,337 views
0 votes
1 answer

UiPath vs Workfusion

in WorkFusion, you can create a script ...READ MORE

answered Apr 17, 2018 in RPA by wrecker
• 3,110 points
2,419 views
0 votes
3 answers

Any open source tools for RPA ?

Yes, here is the Free RPA tool ...READ MORE

answered Oct 24, 2018 in RPA by Karthiksiddhu
• 240 points
1,536 views
0 votes
1 answer

How to scrap only numbers from a pdf file using UiPath studio?

Hi, to scrap only numbers from a ...READ MORE

answered Oct 17, 2019 in RPA by Abha
• 28,140 points
1,091 views
0 votes
1 answer

Expression in VB for automating serial numbers in a list using uipath studio

Hi @Pratibha, if I understand your problem ...READ MORE

answered Oct 24, 2019 in RPA by Abha
• 28,140 points
1,154 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP