Get Path.GetFilename for InputDialog

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)

@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

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

@ppr

thanks! this works perfect!

@abu.behlim

thanks you too!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.