Home | Javascript validator | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Microsoft® JScript® GetExtensionName Method |
Scripting Run-Time Reference Version 3 |
Returns a string containing the extension name for the last component in a path.
object.GetExtensionName(path)The GetExtensionName method syntax has these parts:
Part Description object Required. Always the name of a FileSystemObject. path Required. The path specification for the component whose extension name is to be returned.
For network drives, the root directory (\) is considered to be a component.The GetExtensionName method returns a zero-length string ("") if no component matches the path argument.
The following example illustrates the use of the GetExtensionName method:
function ShowExtensionName(filespec) { var fso, s = ""; fso = new ActiveXObject("Scripting.FileSystemObject"); s += fso.GetExtensionName(filespec); return(s); }
Home | Javascript validator | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |