I\'m developing a Python script to do file management on Windows. Essentially, I want to be able to move files to another location, and create in their place a shortcut to a
File type information is found in the registry. You could look up the file extension's type with the windows registry module.
Edit: It appears icons are available through shell32, as seen here. The Python equivalent seems to be ctypes.windll.shell32.ExtractIconA
, though I'm not sure about the syntax.