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