Javascript Open a file?

I have hta file with javascript in it. It is a tree menu and I am trying to call the ghost application from the  tree menu when I click on the file i get and error saying the file can not be found. I know the path is right

Below is my could

Any thougts


<!-- #include file="header_tutorial.asp" -->
<html>
<head>
<title>Treeview Sample</title>
<script type="text/javascript" src="treeview.js"></script>
</head>
<body>
<div>
<script>
treeAdd(1,'<font size=4><b>Dell Ghost Images;Computers</b></font>','javascript:window.history.go(-1)');
treeAdd(2,'GX 240','');
treeAdd(3,'Non-Sysprep Image', 'X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Desktops\Non Sysprep Images\GX240.gho,dst=1');
treeAdd(3,'Syspreped Image','X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Desktops\Sysprep Images\GX240.gho');
treeAdd(3,'Recovery Partition Image','X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Desktops\Recovery Partition Images\GX240wRP.gho');
treeAdd(2,'GX 260','');
treeAdd(3,'Non-Sysprep Image','X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Desktops\Non Sysprep Images\GX260.gho,dst=1');
treeAdd(3,'Syspreped Image','X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Desktops\Sysprep Images\GX260.gho');
treeAdd(3,'Recovery Partition Image','X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Desktops\Recovery Partition Images\GX260wRP.gho');
treeAdd(2,'GX 270','');
treeAdd(3,'Non-Sysprep Image','X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Desktops\Non Sysprep Images\GX270.gho,dst=1');
treeAdd(3,'Syspreped Image','X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Desktops\Sysprep Images\GX270.gho');
treeAdd(3,'Recovery Partition Image','X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Desktops\Recovery Partition Images\GX270wRP.gho');
treeAdd(2,'GX 280','');
treeAdd(3,'Non-Sysprep Image','X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Desktops\Non Sysprep Images\GX280.gho,dst=1');
treeAdd(3,'Syspreped Image','X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Desktops\Sysprep Images\GX280.gho');
treeAdd(3,'Recovery Partition Image','X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Desktops\Recovery Partition Images\GX280wRP.gho');
treeAdd(2,'Precision 490','');
treeAdd(3,'Non-Sysprep Image','X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Desktops\Non Sysprep Images\pre490.gho');
treeAdd(3,'Syspreped Image','X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Desktops\Sysprep Images\Pre490.gho');
treeAdd(3,'Recovery Partition Image','X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Desktops\Recovery Partition Images\pre490wRP.gho');
treeAdd(1,'<font size=4><b>Dell Ghost Images;Laptops</b></font>','javascript:window.history.go(-1)');
treeAdd(2,'Latitude D600','');
treeAdd(3,'Non-Sysprep Image', 'X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Laptops\Non Sysprep Images\D600.gho');
treeAdd(3,'Syspreped Image','X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Laptops\Sysprep Images\D600.gho');
treeAdd(3,'Recovery Partition Image','X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Laptops\Recovery Partition Images\D600wRp.gho');
treeAdd(2,'Latitude D610','');
treeAdd(3,'Non-Sysprep Image', 'X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Laptops\Non Sysprep Images\D600.gho');
treeAdd(3,'Syspreped Image','X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Laptops\Sysprep Images\D600.gho');
treeAdd(3,'Recovery Partition Image','X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Laptops\Recovery Partition Images\D600wRp.gho');
treeAdd(2,'Latitude D620','');
treeAdd(3,'Non-Sysprep Image', 'X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Laptops\Non Sysprep Images\D600.gho');
treeAdd(3,'Syspreped Image','X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Laptops\Sysprep Images\D600.gho');
treeAdd(3,'Recovery Partition Image','X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Laptops\Recovery Partition Images\D600wRp.gho');
treeAdd(2,'Latitude D630','');
treeAdd(3,'Non-Sysprep Image', 'X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Laptops\Non Sysprep Images\D600.gho');
treeAdd(3,'Syspreped Image','X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Laptops\Sysprep Images\D600.gho');
treeAdd(3,'Recovery Partition Image','X:\Extra\Software\ghost32.exe -clone,mode=restore,src=l:\GSS 2.5\Ghost Images\Dell\Laptops\Recovery Partition Images\D600wRp.gho');
treeAdd(1,'','javascript:window.history.go(-1)');
 
makeTree()
</script>
</div>
 
</body>
</html>

Open in new window

OTNAdminAsked:
Who is Participating?
 
Michel PlungjanConnect With a Mentor IT ExpertCommented:
try
file:///x|/extra.....
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.