<html>
<body>
<script language="JScript">
<!--
function get(){
var myObject = new ActiveXObject("Scripting.FileSystemObject");
var myFolder = myObject.GetFolder("c:\\Program Files");
alert (myFolder.Type);
}
// End hide-->
</script>
Get the type of the "c:\\Program Files" folder.
<form name="myForm">
<input type="Button" value="Get Type" onClick='get()'>
</form>
</body>
</html>
|