We help IT Professionals succeed at work.

Javascript Open a file?

Medium Priority
609 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

Comment
Watch Question

IT Expert
CERTIFIED EXPERT
Top Expert 2009
Commented:
try
file:///x|/extra.....

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.