<html>
<body>
<script language="JScript">
<!--
function getPath()
{
var myObject, f;
myObject = new ActiveXObject("Scripting.FileSystemObject");
f = myObject.GetFile("c:\\Test.txt");
alert("The name of the path is: " + f.Path);
}
//-->
</script>
<form name="myForm">
<input type="Button" value="Get Path" onClick='getPath()'>
</form>
</body>
</html>
|