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
354 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
• 27,720 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 13, 2019 in RPA by Anvi
• 14,010 points
3,189 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 4, 2019 in RPA by anonymous
• 130 points
184 views
0 votes
4 answers

How to find the sum of 2 columns of an excel and display it in a 3rd column using UIPATH?

These are the steps to add two ...READ MORE

answered Aug 2, 2019 in RPA by Shivi Singhal
4,177 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
521 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
434 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
1,185 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
331 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 16, 2019 in RPA by Abha
• 27,720 points
61 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
• 27,720 points
140 views