File.Type : File : MS JScript JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » MS JScript » File »

 

File.Type







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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo MS JScript
» File