Ah. Well, I have yet to find any working script that can extract the icons of files/programs, due to the way icons are stored. Only way I know how is through drag and drop.
It is possible to get the content of a folder then create (clone) shortcut text objects for each item (did this for my Dirty NrG theme start menu.) If you still want icons you could, alternatively, use FileSystemObject to identify the file types of each item in the folder then assign your own custom icons for different file types to the objects; I did that with my Microbe theme.
Here are a few resources that might help:
SCROLLING CONTENT
LIST CONTENT OF A FOLDER EXAMPLES
FILE SYSTEM OBJECT
DX User's Guide - Step-by-Step Tutorials - WC Wiki Tutorials