Can i see all the files in a folder on a layer?

Hello,
Is there the possibility to se all the files that are for example in My Documents, or whatever real path i put (in a script?), on a layer like this Aero tamplate ( https://www.wincustomize.com/ViewSkin.aspx?SID=1&SkinID=3619&LibID=3 )? The Aero tamplate and the My Documents directory will have to stay synchronize, having the possibility to delete or add files in both of them.
2,681 views 5 replies
Reply #1 Top
Sure. Text Object on Aero background. Get list of files in folder using the FileSystemObject. String all the filenames together into a string and assign the string to the text object. Set a timer to recheck the directory periodically. Program the text object to received OnDrop Files to copy the dropped files to the folder in question. Deleting things from the folder directly from the object would require more tricky programming. Oh, and to make the object the right height, do a font size multiplied by number of files in the list to set the object.height.

Reply #2 Top
Text Object on Aero background. Get list of files in folder using the FileSystemObject. String all the filenames together into a string and assign the string to the text object. Set a timer to recheck the directory periodically. Program the text object to received OnDrop Files to copy the dropped files to the folder in question. Deleting things from the folder directly from the object would require more tricky programming. Oh, and to make the object the right height, do a font size multiplied by number of files in the list to set the object.height.


Very cool. Have you thought of posting a script here: http://scratchpad.wikia.com/wiki/DesktopX ?
Reply #3 Top
what about showing the icon associated with the files on the layer, any ideas on how to do that
Reply #4 Top
if we could set an icon image as the image for the state of an obect, perhaps. You could read the file type and assign the icon image acordingly. Ripping the icon off the reference fles and assigning that to the object. Well, if you can find a command line utility to rip an icon from a file and save as a png, then read that png as the image for the object, this would work. But you might find it a slow process?

Reply #5 Top
I kinda of thought that was the way (which is ok it only needs to be done once) but i was hoping someone knew the vbscript to do it, been racking my head over the msdn (not an esay site to penertrate) with next to little luck