vitaxa3581,
<html>
<body>
<a href = "file:///C:/"> Переход: <br></a>
<script language="JavaScript">
var path = document.location.href.split("/"), str = "file:///"; //URL
for (i=3; i < path.length; i++) {
str += decodeURI(path[i]+(i == path.length-1 ? "" : "/"));
document.write("<a href='"+str+"'>"+str+"</a><br>");
}
</script>
</body>
</html>