How to execute a called
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I am calling an m file from a vb script (visual basic script) this works, i can open the file, but it doesn't run (probably because it isn't a exe file) So now my question is, how can I automatically have it running when i call it from my script. I am aware that it is possible to create an executable file with matlab, but i don't have the licenses necessary to do this Are there any other ways to do this?
the code from VBS:
_ Set wshShell = WScript.CreateObject("WSCript.shell")
wshshell.run "C:\Users\Gino\Documents\MATLAB\file.m"
set wshshell = Nothing_
If anyone could help, it would be much appreciated
0 comentarios
Respuesta aceptada
Friedrich
el 6 de Mzo. de 2013
Hi,
you have two alternatives:
1.) Use MATLAB Automation Server from VBS
2.) Start MATLAB.exe with -r flag to run that script (maybe you also need -sd to start in the directory where the m file is located)
0 comentarios
Ver también
Categorías
Más información sobre Downloads en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!