Clovertech
› Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › Calling a VB app from a tcl proc – and passing it the messag
Has anyone ever tried to call a Visual Basic app/script from a tcl proc in the engine? Also passing it the hl7 message?
I need to automate a process that takes an ORM and generates a printed form from it.
Hi,
You should be able to do this. I’ve called external programs before from Tcl -Not sure of format but will along the lines of:
“exec script.vb message”
Quotes will be important but I may have them in the wrong place. Bit of trial and error for you.
Regards
Garry
Thanks, that at least get me to a starting point to start experimenting.
I haven’t tried it but I don’t think you will be able to do that.
In Windows Tcl can only exec .bat, .exe and .com files.
You will have to exec VB and pass it your script as an argument.
This is the same way we have to exec Tcl and Perl scripts in Windows
What I was thinking on was using the free VB 2010 and making a compiled exe for what I need to do and call the exe from tcl.
That should work
Interesting to know that. I’ve only ever called .exe and .bat files so haven’t come across that issue before.