I happened to do exactly what you are looking for as an example of an object called DynuExec...

here is the link

Exec() or Pipe()

I'm not sure if the version of kixtart you are using supports objects, but this object was very easy to use, and it is free [Wink]
_________________________
(... better days ahead)