Page 1 of 1

run a macro file ( .vbs)

Posted: 29 Jun 2015, 22:07
by doctornikesh
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.

Re: run a macro file ( .vbs)

Posted: 29 Jun 2015, 23:17
by Xupicor
I don't know much about .vbs (Visual Basic scripts?) - but I think you'd need to run cscript or wscript instead of cmd.

Re: run a macro file ( .vbs)

Posted: 30 Jun 2015, 08:06
by admin
Google for example "run vbs script" or even "run vbs from lua"

Re: run a macro file ( .vbs)

Posted: 11 Jul 2015, 22:53
by doctornikesh
Thanks for all the replies, Xupicor, your advice for using wscript worked.