<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>
|