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

0 votes
I want to extract only .XAML files from a folder and display the file names. How can I achieve this using UiPath studio?
Mar 13, 2019 in RPA by Avani
7,956 views

1 answer to this question.

0 votes

Hey @Avani, if you want to extract only .XAML files from a directory and display their names, then you can simply achieve this by following steps:

1. Create a Sequence. Also create variables fileList and sourcePath and assign path of files directory to sourcePath. Set fileList type as String[].

2. Now drag an Assign activity and assign fileList to Directory.GetFiles(sourcePath, "*.xaml"). This will store all .xaml files into fileList array.

3. Finally, add a ForEach activity to iterate over fileList. Inside ForEach, call WriteLine activity to write file names to Output (debug console):

answered Mar 14, 2019 by Anvi
• 14,170 points

Related Questions In RPA

0 votes
1 answer

How to extract numbers from a web page using Uipath ?

Hi, you can simply use GetText and Message ...READ MORE

answered Aug 19, 2019 in RPA by Abha
• 28,120 points
1,459 views
0 votes
1 answer

Get a list of files from a Directory using UiPath Studio

Hey Apeksha, you can try following pseudo ...READ MORE

answered Nov 5, 2019 in RPA by Abha
• 28,120 points
7,115 views
0 votes
1 answer

How to save only a specific file type using Save Attachment activity in UiPath?

Hey, the Filter property from Save Mail Attachment ...READ MORE

answered Nov 7, 2019 in RPA by Abha
• 28,120 points
4,452 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
993 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,836 views
0 votes
1 answer

Surface automation in rpa?

Surface automation is a visual automation that is done using ...READ MORE

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

Private Chrome window open UiPath

To open the browser in private mode, ...READ MORE

answered Apr 25, 2018 in RPA by wrecker
• 3,110 points
1,025 views
+3 votes
1 answer

How to extract data from a website and save it to excel using UiPath?

Hi Piyush, if you want to extract ...READ MORE

answered Mar 8, 2019 in RPA by Anvi
• 14,170 points
19,194 views
+1 vote
2 answers

Looping through PDF files to extract specific data using Uipath

Hi Rashi, you can access all the ...READ MORE

answered Mar 5, 2019 in RPA by Anvi
• 14,170 points
6,097 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