FileSystem.getAssociation() This page was last modified over 30 day(s) ago and has 0 comment(s)


Back to FileSystem Class Summary

Availability
Windows, Mac OSX

Usage
mdm.FileSystem.getAssociation(extension:String):String

Parameters
extension:String - File extension to check

Returns
A String

Description
Returns the full path to the system associated executable for loading the specified extension.

For example, specifying ".html" will return something similar to: "C:\Program Files\Internet Explorer\iexplore.exe".

Notes
On Mac OSX, you must specify the full path to a file, and not just the file extension.

Example Code
var myApplicationPath:String = mdm.FileSystem.getAssociation(".html");

mdm.FileSystem Class Example Downloads
No Example Downloads Available


Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here
  After Logging In, Click Here to Refresh This Page