hey David, Got it working sorta it times out before it can execute everyting so I'm thinking that increasing the time to execute the process but it doesn't seem to be working.
One question when passing arguments through the tag, I have it like this.. #Var1# #Var2# etc etc. Does it need to have any seperaters? Jeremy > Hi Jeremy, > > Yep, it's new within cfexecute (at version 6.1). > > So CF can capture the screen output from you batch file (or whatever) and > write it to a variable (or a system file with the outputfile arg). > > i.e. > > <cfexecute name="C:\WinNT\System32\tree.com" > arguments="c:\temp /A" > timeout="10" > variable="Variables.tmp"> > </cfexecute> > > You could then search through the variable (in the above case tmp) and > extract the output you need. > > cheers > > David > > > -----Original Message----- > From: Jeremy [mailto:[EMAIL PROTECTED] > Sent: Monday, February 16, 2004 2:21 PM > To: CFAussie Mailing List > Subject: [cfaussie] RE: Sending ColdFusion Vars to a .exe > > > Hey David, > > What do you mean the variable attribute? Within cfexecute? > > Jeremy > > > If you are using 6.1 try the variable attribute - it will capture screen > > output. Then parse out the info you need. > > > > cheers > > > > David > > > > -----Original Message----- > > From: Jeremy [mailto:[EMAIL PROTECTED] > > Sent: Monday, February 16, 2004 1:54 PM > > To: CFAussie Mailing List > > Subject: [cfaussie] RE: Sending ColdFusion Vars to a .exe > > > > > > I.....I was just reading up about that when you sent the email. I'm > > thinking that might be the answer I'm looking for. I'll give it a go later > > this afternoon and get back to you. Get vars back is going to be the > > tricky bit though....Cause the .exe produces vars that it > > displays....mmmmm > > > > Thanks guys!!! > > P.S. I can create a .bat file on the fly but its a tad messy i.e. it could > > easily break. > > > > thanks again > > J. > > > > > Hi Jeremy, > > > > > > How about cfexecute with the arguments attribute? > > > > > > i.e. > > > > > > <cfexecute > > > name="C:\WinNT\System32\tree.com" > > > arguments="c:\temp /A" > > > timeout="10"> > > > </cfexecute> > > > > > > cheers > > > > > > David > > > > > > -----Original Message----- > > > From: Jeremy [mailto:[EMAIL PROTECTED] > > > Sent: Monday, February 16, 2004 1:41 PM > > > To: CFAussie Mailing List > > > Subject: [cfaussie] Sending ColdFusion Vars to a .exe > > > > > > > > > Howdy howdy, > > > > > > Just a really quick question fur you all. I have an .exe that I want to > > > send variables to via coldfusion. > > > > > > Currently, I'm executing a .bat file which has hard code variables. > > > > > > Any body know a way we can connect to a .exe and pass variables to them > > > via ColdFusion. > > > > > > Mucho Gracis, > > > > > > jeremy > > > > > > --- > > > You are currently subscribed to cfaussie as: > > [EMAIL PROTECTED] > > > To unsubscribe send a blank email to > > > [EMAIL PROTECTED] > > > > > > MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia > > > http://www.mxdu.com/ + 24-25 February, 2004 > > > > --- > > You are currently subscribed to cfaussie as: > [EMAIL PROTECTED] > > To unsubscribe send a blank email to > > [EMAIL PROTECTED] > > > > MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia > > http://www.mxdu.com/ + 24-25 February, 2004 > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to > [EMAIL PROTECTED] > > MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia > http://www.mxdu.com/ + 24-25 February, 2004 --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
