Search the Community
Showing results for tags 'filetype'.
Found 2 results
I have an AutoIT script that places a drop down menu toolbar on the user screen with links to various web sites important to the users. The menus and links are kept in .ini files. Now I want to use the same script to open Word documents and Excel spreadsheets kept on a shared drives. I was hoping AutoIT would use the default program Windows has associated with a file extension to open the correct program. I have not been able to do this and cannot find a solution in the Forums, documentation or Examples. I was also hoping to extend this to PDF and Powerpoint files. Basically, any program associated in Windows to a file extension. Is this doable with AutoIT? Any advise will be much appreciated.
A simple, no-nonsense approach to acquiring a filetype String. Reads the Registry for the given filename's extension, finds the classname for the extension, then returns the filetype String for the classname. Pretty straightforward. Returns "Directory Tree" for directories. Use at will. UPDATE 08/06/13: - Added file to track downloads. UPDATE 10/16/2012: - Added WinAPIEx usage in new method. - Various other improvements as outlined by guinness. Code removed, replaced with download: GetFileType.au3 Regards, Cyberbit