The code below come as is from the FolderItem (web) Reference:
Var desktopFolder As FolderItem = SpecialFolder.Desktop
If desktopFolder Is Nil Then
Return
End If
For Each file As FolderItem In DesktopFolder.Children
If file <> Nil Then
ListBox1.AddRow(file.Name)
End If
Next
Is it int’l ok ? Diacritical ok ? UTF ok ???
A proof read is needed there…
FolderItem:
There is an error below:
When accessing a drive on Windows that you do not have permissions for or does not exist, there is no trailing slash. For example, “a:” is a floppy drive with no disk, “a:” has a disk.