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
1,767 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
• 12,840 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
• 22,960 points
43 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,008 views
0 votes
1 answer

How to take screenshot of a webpage using UIPath?

Hi Prakash, to take the screenshot from ...READ MORE

answered Mar 8 in RPA by Abha
• 22,960 points
767 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
316 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,017 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
455 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
386 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
• 12,840 points
3,739 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
• 12,840 points
1,363 views