The Name property sets or gets the name of the folder.
<html> <body> <script language="JScript"> <!-- function get(){ var myObject = new ActiveXObject("Scripting.FileSystemObject"); var myFolder = myObject.GetFolder("c:\Temp"); alert (myFolder.Name); } // End hide--> </script> Get the name of the c:temp folder. <form name="myForm"> <input type="Button" value="Get Name" onClick='get()'> </form> </body> </html>