The Type property is used to get information pertaining to the type of file.
<html> <body> <script language="JScript"> <!-- function get() { var myObject, f; myObject = new ActiveXObject("Scripting.FileSystemObject"); f = myObject.GetFile("c:\\test.txt"); alert("The name type is: " + f.Type); } //--> </script> <form name="myForm"> <input type="Button" value="Get File Type" onClick='get()'> </form> </body> </html>