<html>
<body>
<script language="JScript">
<!--
function get(){
var myObject = new ActiveXObject("Scripting.FileSystemObject");
var myFolder = myObject.GetFolder("c:\\Temp");
alert (myFolder.DateLastAccessed);
}
// End hide-->
</script>
Get the date the c:\temp folder was last accessed.
<form name="myForm">
<input type="Button" value="Get Last Access" onClick='get()'>
</form>
</body>
</html>
|