Running .vbs file from MATLAB
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Jason Allnutt
am 14 Feb. 2016
Kommentiert: Jason Allnutt
am 18 Feb. 2016
I have a .vbs file on my computer that accesses a database and creates a text file of the info in the database. How do i have MATLAB tell this file to run? I tried the open command and all it did was open the script in a MATLAB editor.
Also, I have attempted accessing the database with the Database Toolbox but that has given me issues. I am attempting running the .vbs file as a work around for the time being.
-Jason
0 Kommentare
Akzeptierte Antwort
Guillaume
am 14 Feb. 2016
Bearbeitet: Guillaume
am 14 Feb. 2016
Possibly:
system(sprintf('cscript.exe "%s"', 'c:\full\path\to\your\script');
Considering that vbs scripts tend to just contain calls to activex (COM) objects which matlab can also do, you may as well rewrite the script in matlab. It's more maintainable in the long run.
5 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Use COM Objects in MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!