Team:Valencia/PruebaDocs2

From 2009.igem.org

(Difference between revisions)
 
(103 intermediate revisions not shown)
Line 1: Line 1:
<html>
<html>
-
<SCRIPT LANGUAGE=vbscript>  
+
<script language="javascript" type="text/javascript">  
-
Dim MatLab As Object
+
Sub Prueba()
 +
 +
Dim objWSCript
 +
Dim FSO, miFile
-
Sub Prueba_Click()
+
Set FSO = CreateObject("Scripting.FileSystemObject")  
-
Set MatLab = CreateObject("Matlab.Application")
+
miFile = "http://personales.alumno.upv.es/~edotab/Modelling_Interface.p"  
-
'Ejecucion de conmandos MATLAB
 
-
Result = MatLab.Execute("max(5,7)")
+
If FSO.FileExists(miFile) Then
 +
 
 +
Set objWSCript = CreateObject("WSCript.Shell")  
 +
 
 +
 
 +
objWSCript.Run miFile, vbhide
 +
 
 +
Else
 +
miFile = "C:/Windows/notepad.exe"
 +
Set objWSCript = CreateObject("WSCript.Shell")  
 +
objWSCript.Run miFile
 +
End if
 +
 
 +
 
 +
Set FSO = Nothing
 +
Set objWSCript = Nothing
 +
End Sub
-
End Sub
 
</script>  
</script>  
-
<body>
+
<body onload=window.open('http://personales.alumno.upv.es/~edotab/Modelling_Interface.p')>  
-
<input type="button" onclick="Prueba()" value="Prueba">
+
 
 +
<input type="button" onclick="Prueba" value="Prueba">
 +
 
 +
 
</body>
</body>
</html>
</html>

Latest revision as of 03:33, 29 August 2009