C#, services and vbscript

  • Thread starter Thread starter Jim Rasmussen
  • Start date Start date
J

Jim Rasmussen

Can a service that executes a vbscript have a return value from the vbscript
to C#? If so, how.

TIA

Jim
 
Jim,

The only way that you are going to be able to get a return value is if
you return an integer from the VB script (it might be through a call to Exit
in VB script which takes an integer). You would then get this from the
Process class.

If you need to pass some other data, then you are going to have to use a
shared resource, like a file, or something of that nature.
 
They can probably communicate through stdin/stdout but you'll have to
deal with serializing the data.

HTH,

Sam
 
Back
Top