?
Solved

Javascript Open a file?

Posted on 2009-02-18
1
Medium Priority
?
529 Views
Last Modified: 2012-05-06
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

0
Comment
Question by:OTNAdmin
1 Comment
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 2000 total points
ID: 23681640
try
file:///x|/extra.....
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question