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 in RPA by Avani
2,551 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 13 by Anvi
• 13,960 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 in RPA by Abha
• 27,180 points
86 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 in RPA by Abha
• 27,180 points
20 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 in RPA by Abha
• 27,180 points
22 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
363 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,105 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
576 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
437 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 in RPA by Anvi
• 13,960 points
5,741 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 in RPA by Anvi
• 13,960 points
2,241 views