How to use filter property in selectfile activity

uiautomation
activities
studio

#1

By default we are able to select any file from the selected drive because it uses " All files (.)|. "
Consider a scenario that I want to choose only .csv files then what should be the filter command Is it like this " .CSV|.csv " ?


#2

create string variable ->folderlocation
using assign activity
folderlocation="C:\Documents"
create string array variable ->allcsvfile
using Assign Activity
allcsvfile=Directory.GetFiles(folderlocation, “*.csv”)


#3

Hi @sathishkumar191991,

In Select File activity.

Yes you can give in using Filter option to get specific file format alone.
In Properties->All files (*.csv)|*.csv

Regards,
Arivu