<html>
<body>
<script language="JScript">
<!--
function GetNewPath(path)
{
var myObject, newpath;
myObject = new ActiveXObject("Scripting.FileSystemObject");
newpath = myObject.BuildPath(path, "/newstuff");
alert("The result is: " + newpath);
}
-->
</script>
Append "/newstuff" to the existing path: "c:/tmp"
<form name="myForm">
<input type="Button" value="Build Path" onClick='GetNewPath("c:/tmp")'>
</form>
</body>
</html>
|