Hi Guys ,
How to add system default icons to the files listed in a ListView according to their extension?
I found a script on the web and tried to adapt to my script with no success.
My script :
Any light shed will be very much appreciated,
Mike
How to add system default icons to the files listed in a ListView according to their extension?
I found a script on the web and tried to adapt to my script with no success.
My script :
VB Script Code:
' This happens inside a click function path = "C:\Users\Michel\Desktop\Documentos\" & cat '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Dim di As New IO.DirectoryInfo(path) Dim diar1 As IO.FileInfo() = di.GetFiles() Dim dra As IO.FileInfo Try ListView1.View = View.Details ListView1.Items.Clear() Dim lCurrent As ListViewItem For Each dra In diar1 lCurrent = ListView1.Items.Add(dra.Name) lCurrent.SubItems.Add(dra.LastWriteTime) lCurrent.Tag = dra Next Catch ex As Exception MessageBox.Show(ex.Message) End Try ...
Any light shed will be very much appreciated,
Mike