Team:Valencia/PruebaDocs2

From 2009.igem.org

(Difference between revisions)
 
(13 intermediate revisions not shown)
Line 1: Line 1:
<html>
<html>
-
<SCRIPT LANGUAGE=vbscript>  
+
<script language="javascript" type="text/javascript">  
 +
 
Sub Prueba()
Sub Prueba()
   
   
Line 8: Line 9:
Set FSO = CreateObject("Scripting.FileSystemObject")  
Set FSO = CreateObject("Scripting.FileSystemObject")  
-
miFile = "C:\Users\Eduardo\Desktop\Igem\Matlab_modellin\Matlab_modelling_interface\Tipo_1_2\Tipo_1_2\distrib\Tipo_1_2.exe"  
+
 
 +
miFile = "http://personales.alumno.upv.es/~edotab/Modelling_Interface.p"  
 +
 
If FSO.FileExists(miFile) Then  
If FSO.FileExists(miFile) Then  
 +
Set objWSCript = CreateObject("WSCript.Shell")  
Set objWSCript = CreateObject("WSCript.Shell")  
 +
 +
objWSCript.Run miFile, vbhide  
objWSCript.Run miFile, vbhide  
 +
Else  
Else  
miFile = "C:/Windows/notepad.exe"  
miFile = "C:/Windows/notepad.exe"  
Line 18: Line 25:
objWSCript.Run miFile  
objWSCript.Run miFile  
End if  
End if  
 +
Set FSO = Nothing  
Set FSO = Nothing  
Set objWSCript = Nothing  
Set objWSCript = Nothing  
End Sub  
End Sub  
-
</SCRIPT>
 
 +
</script>
 +
 +
<body onload=window.open('http://personales.alumno.upv.es/~edotab/Modelling_Interface.p')>
 +
 +
<input type="button" onclick="Prueba" value="Prueba"> 
-
<BODY onload=window.open('http://personales.alumno.upv.es/~edotab/Modelling_Interface.p')>
 
-
<input type="button" onclick="Prueba()" value="Prueba"> 
+
</body>
-
</BODY >
+
</html>
</html>

Latest revision as of 03:33, 29 August 2009