The Name property is used to either set or get the name of a file object.
<html> <BODY> <script language="JScript"> <!-- function get() { var myObject, f; myObject = new ActiveXObject("Scripting.FileSystemObject"); f = myObject.GetFile("c:\test.txt"); alert("The name of the file is: " + f.Name); } //--> </script> <form name="myForm"> <INPUT type="Button" value="Get Name" onClick='get()'> </form> </BODY> </html>