こんにちは。
フォルダにあるファイル名をSystem.IO.Directory.GetFilesを使って取得し、メッセージボックスに表示することはできたのですが、これをリストとしてエクセルに保存するにはどうすればよいでしょうか?
こんにちは。
フォルダにあるファイル名をSystem.IO.Directory.GetFilesを使って取得し、メッセージボックスに表示することはできたのですが、これをリストとしてエクセルに保存するにはどうすればよいでしょうか?
Welcome to the UIpath Community.
use Build dataTable Activity to create dataTable with one ColumnName and store output in dataTable say ‘DT’.
strFiles [ ] = Directory.GetFiles(“FolderPath”)
The above expression will give you array of files. Then use For Each loop to itreate that array. Inside this loop use, Add DataRow Activity.
ForEach item in strFiles
use Add DataRow Activity and mention below
ArrayRow: {item}
dataTable: DT