FileSystemObject.GetAbsolutePathName() : FileSystemObject : MS JScript JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » MS JScript » FileSystemObject »

 

FileSystemObject.GetAbsolutePathName()









Syntax








filesystemobject.GetAbsolutePathName(/Pathname/)



The GetAbsolutePathName() method returns a complete and unambiguous path from a provided path specification.












<html>
    <body>
    <script language="JScript">
    <!--
    function getpath()
    {
        var myObject, path;
        myObject = new ActiveXObject("Scripting.FileSystemObject");
        path = myObject.GetAbsolutePathName("c:\")
        alert("Absolute Path Name is: " + path);
    }
    -->
    </script>
    Get the Absolute Path for C:
    <form name="myForm">
    <input type="Button" value="Get Absolute Path" onClick='getpath()'>
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo MS JScript
» FileSystemObject