If the program you are trying to communicate with was build to support the
COM interface (probably a .dll) then you can use CFOBJECT. Look for the
OleViewer on Microsoft's site it will show you the methods and properties of
the program if you have no 3rd party documentation.

If you are trying to talk to an exe, you might try using the outputfile
property of CFEXECUTE to output the return value of the call to a txt file
and then read it back into a variable on the page with cffile.

Bryan

----- Original Message -----
From: "Michael Dinowitz" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, May 02, 2001 9:35 AM
Subject: Re: cfexecute problems


> ***************************** Team Allaire *****************************
> I don't think it's possible. CFEXECUTE does a single command line call. It
> doesn't 'hold' the connection open at all. For that you need something
like
> COM (or the other CFOBJECT techs).
>
>
> > Anyone know how to use cfexecute with a command line program that
requires
> > user input after the first line?  That is, how do you tell cfexecute
that
> > you want to do the first bit, then simulate pressing return, then do the
> > next bit, etc....
> >
> > I've tried passing \n, \r, #chr(10)#, #chr(13) and even actually
enclosing
> a
> > real carriage return between quotes and it won't work.
> >
> > Any help would be great.
> >
> > TIA,
> >
> >
> > Aaron Cooper, BSc
> > Application Developer, Freeserve.com Plc
> > The Observatory, 36-41 Clerkenwell Close, London EC1R OAU
> > T: 0207 553 4992  M: 07799 191 589
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to