Crusha
(CH)
March 17, 2020, 12:37pm
1
Hello,
I want to read my file names without a path. I created a .xaml in which I read all the files with a path. But I would like the selection to take place without a path.
Directory.GetFiles(Pfad,“*.xlsx”).Select(Path.GetFileName(Pfad.ToString)) have I tested too.
FileName read and choose.xaml (7.7 KB)
ppr
(Peter Preuss)
March 17, 2020, 12:43pm
2
@Crusha
give a try on
Directory.GetFiles(Pfad,“*.xlsx”).Select(function (x) Path.GetFileName(x)).toArray
the returned array you can use for the options field of the input Dialog
abu.behlim
(Abu Hurera Behlim)
March 17, 2020, 8:06pm
3
Hello @Crusha
Use the Directory.GetFiles(Path,“*.xlsx”) in for each activity
then use message box or Write Line activity
and pass the below method.
Path.GetFileName(item)
try this
Crusha
(CH)
March 18, 2020, 5:43am
4
@ppr
thanks! this works perfect!
@abu.behlim
thanks you too!
system
(system)
Closed
March 23, 2020, 7:49am
5
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.