File.ShortPath : File : MS JScript JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » MS JScript » File »

 

File.ShortPath







The ShortPath property returns the short path used by programs that require the earlier 8.3 naming convention.












<html>
    <BODY>
    <script language="JScript">
    <!--
    function get()
    {
        var myObject, f;
        myObject = new ActiveXObject("Scripting.FileSystemObject");
        f = myObject.GetFile("c:\yourfolder\Test.txt");
        alert("The file ShortPath name is: " + f.ShortPath);
    }
    //-->
    </script>
    <form name="myForm">
    <INPUT type="Button" value="Get Shortpath" onClick='get()'>
    </form>
    </BODY>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo MS JScript
» File