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 in RPA by Apeksha
• 1,100 points
31 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 by Abha
• 27,180 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 in RPA by Anvi
• 13,960 points
2,616 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 in RPA by Shivi Singhal
3,690 views
0 votes
1 answer

Pull a section of text from a word document using Blue Prism

You can highlight the text in your ...READ MORE

answered Nov 13, 2018 in RPA by Priyaj
• 56,940 points
1,616 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
459 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
368 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,111 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
273 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 in RPA by Abha
• 27,180 points
19 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 in RPA by Abha
• 27,180 points
35 views