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
922 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
• 9,910 points

Related Questions In RPA

0 votes
3 answers

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

1.  Excel Application Scope (Activity) : In ...READ MORE

answered Jun 9 in RPA by anonymous
• 140 points
2,007 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
• 15,640 points
338 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,090 points
252 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,090 points
893 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,090 points
330 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,090 points
324 views
0 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
• 9,910 points
1,421 views
0 votes
1 answer

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
• 9,910 points
488 views