Tuncay Özışık
Tuncay Özışık

Reputation: 21

How to pass a value from Visual Basic 6 program to VBscript code?

I have a VB6 code and another VBScript which runs in the background. I need to pass a variable periodically (say, with a timer) from VB6 code to the background VBscript. Is there any way other than write down to temporary file and read it from VBscript?

Tuncay, Thanks...

Upvotes: 2

Views: 509

Answers (1)

Jim Mack
Jim Mack

Reputation: 1144

You should look into Message Queues, which are accessible from both VB6 and VBS. They're designed for this purpose. If the following link rots, search for VBS and MSMQ. Another possibility is named (or anonymous) pipes as described in a previous SO post.

Upvotes: 1

Related Questions