<html>
<body>
<script language="JScript">
<!--
function getdrive()
{
var myObject, drive, e;
myObject = new ActiveXObject("Scripting.FileSystemObject");
drive = myObject.Drives;
e = new Enumerator(drive);
alert("The first drive is: " + e.item());
}
-->
</script>
<form name="myForm">
<input type="Button" value="Get Drive Name" onClick='getdrive()'>
</form>
</body>
</html>
|