run a macro file ( .vbs)

Announcements, questions
Post Reply
doctornikesh
Posts: 3
Joined: 29 Jun 2015, 21:50

run a macro file ( .vbs)

Post by doctornikesh » 29 Jun 2015, 22:07

I am newbie in computer programming world, I am a physician trying to cut my time in documentation and gathering data. I have created bunch of VBS macros using a program called openwebtst.

I was wondering how could I trigger a macro with VBS extension using your quickstart.lua file,I replaced "notepad" with,"cmd"
and "C:\\test.txt" with current path of my VBS file. But it just opens the command prompt with current directory in windows 7 . Please help.

User avatar
Xupicor
Posts: 7
Joined: 27 Jun 2015, 12:45

Re: run a macro file ( .vbs)

Post by Xupicor » 29 Jun 2015, 23:17

I don't know much about .vbs (Visual Basic scripts?) - but I think you'd need to run cscript or wscript instead of cmd.

admin
Site Admin
Posts: 725
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: run a macro file ( .vbs)

Post by admin » 30 Jun 2015, 08:06

Google for example "run vbs script" or even "run vbs from lua"
Petr Medek
LUAmacros author

doctornikesh
Posts: 3
Joined: 29 Jun 2015, 21:50

Re: run a macro file ( .vbs)

Post by doctornikesh » 11 Jul 2015, 22:53

Thanks for all the replies, Xupicor, your advice for using wscript worked.

Post Reply